Reproducing the results - xavierfeltin/mtg_data_mining GitHub Wiki

To reproduce the results on your computer

Install environment

  • Fork this project and install the requirements

git clone yourRepository.git

pip install requirements.txt

npm install -g @angular/cli

  • Install the dependencies of magic-visu (Angular application). In the folder /magic-visu:

npm install

Get the decks and the cards database

  • Nothing to do. The data are in the /data folder.
  • Generate for each game mode with :
    • 500 decks: use "/data/decks_mtgdeck_net_extended" in the "/collaborative_filtering/main_filtering.py" file
    • 5000 decks: use "/data/decks_mtgdeck_net" in the "/collaborative_filtering/main_filtering.py" file

Generate the recommendations

  • Execute python script to generate the recommendations (uses 6 cores for multiprocessing)

python web_content_generator/main_content_generation.py

Visualize the results

  • Copy the generated json files from the folder "web_content_generator\resources" into the folder "/magic_visu/src/assets"
  • Start the magic_visu web application and open a new tab in the Web browser. In the folder "/magic-visu":

ng serve --open