python -m app.models.train_model data/raw/training.csv v0
Will train model v0 using the file at: /home/felipe/flask-sklearn-seed/data/raw/training.csv
training set has 7500 rows
validation set has 2500 rows
0.985957111012551
Successfully saved model at /home/felipe/flask-sklearn-seed/trained-models/trained-model-v0.p
Error Message:
bob@bob-Precision-5520:~/WebstormProjects/Test Harness$ python -m app.models.train_model data/raw/training.csv v0
Traceback (most recent call last):
File "/home/bob/anaconda3/envs/pytorch_env/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/bob/anaconda3/envs/pytorch_env/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/bob/WebstormProjects/Test Harness/app/models/train_model.py", line 100, in
_validate_args(path, model_version)
File "/home/bob/WebstormProjects/Test Harness/app/models/train_model.py", line 74, in _validate_args
if not os.path.isfile(files_utils.to_abs_path(path)):
File "/home/bob/WebstormProjects/Test Harness/app/utils/files.py", line 17, in to_abs_path
raise IOError("file not found: {}".format(path))
OSError: file not found: data/raw/training.csv