Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable Machine Learning on new repository #43

Closed
lfaucon opened this issue Jun 13, 2021 · 1 comment
Closed

Re-enable Machine Learning on new repository #43

lfaucon opened this issue Jun 13, 2021 · 1 comment

Comments

@lfaucon
Copy link
Member

lfaucon commented Jun 13, 2021

This ticket would benefit greatly from having data in one's local database #42

  • Create a new django application "ml" (name could be changed) that contains the Machine Learning code that can be run with the managment command ml_train.
  • Ensure the code can runs and produces expected results
@lfaucon
Copy link
Member Author

lfaucon commented Jun 22, 2021

Hi @OscarVlld

Here is how to work on this task:

  1. Clone the repository https://github.com/tournesol-app/tournesol-backend, then cd tournesol-backend
  2. Checkout the branch for working on the ml algorithm git checkout ml_train
  3. Follow the instructions from the Readme file to run the backend locally
  4. Load data in the database uncompress dump.sql.tgz and load the data in your local database psql -d tournesol < scripts/dataset-import/dump.sql
  5. Write the algorithm ml_run in file ml/management/commands/ml_train.py and run the algorithm with python manage.py ml_train
  6. Add dependencies in ml/ml_requirements.txt
  7. Commit and push the changes

@lfaucon lfaucon self-assigned this Jun 29, 2021
@lfaucon lfaucon closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant