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

prediction by default picking up all models in the directory #11

Closed
chupvl opened this issue Feb 1, 2019 · 1 comment
Closed

prediction by default picking up all models in the directory #11

chupvl opened this issue Feb 1, 2019 · 1 comment

Comments

@chupvl
Copy link

chupvl commented Feb 1, 2019

Use case
DIR1/model1/
DIR1/model2/
DIR1/model3/
etc...

predict.py automatically picking up all other directories (model1/2/3) while I defined to use only one for predictions, I suppose it should use only and only one directory to look for *.pt?
python /home/user/git/chemprop/predict.py --test_path test.csv --preds_path test_preds.csv --checkpoint_path ./DIR1/model3/

@swansonk14
Copy link
Collaborator

The behavior of --checkpoint_dir <dir> is to walk the directory <dir> and to load all *.pt files it finds. It then uses all the models it finds as an ensemble to make predictions. If you would only like it to load a single model for prediction, then you should use --checkpoint_path /path/to/model.pt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants