Skip to content

Commit

Permalink
need to run things as modules now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricoms committed Feb 9, 2023
1 parent e3cc21c commit b37642d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install-dev:
pip install -r requirements-dev.txt

train:
python experiment/train.py
python -m experiment.train

predict:
python experiment/predict.py
python -m experiment.predict
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ python experiment/train.py

To run a prediction:
```bash
poetry run python experiment/predict.py
python -m experiment.predict
```

These commands should be run in the order presented here. As the first should generate a machine learning model file inside `ml` folder. The final prediction output of the `data_sample.json` will be generated inside the `ml` folder too, as `final_output.json`.
Expand Down

0 comments on commit b37642d

Please sign in to comment.