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

About validation in pytorch #22

Closed
soon-will opened this issue Nov 27, 2018 · 4 comments
Closed

About validation in pytorch #22

soon-will opened this issue Nov 27, 2018 · 4 comments

Comments

@soon-will
Copy link

Thank you for your effort.

In pytorch version code, the model was saved after 3,000 iterations, so after 10,000 iterations(train) we saved about 3 models. So, I have two questions:

  1. Which model are you going to use to test?

  2. It seems that you don't val the model after training, so how do you ensure the model saved will be the best model?

Thanks for your reply.

@caozhangjie
Copy link
Collaborator

1.You can use the model at 6000-7000 iterations.

2.The parameters are tuned in our experiments with cross-validation and I only set them as the optimal parameters for reproducing.

@soon-will
Copy link
Author

soon-will commented Nov 27, 2018

@caozhangjie
Thanks for your reply.

About the first question, if there is no val set, then how do you ensure the model is the best model? The parameters, like learning rate, can be tuned with cross-validation, should we use val set to choose the better model , like training a classification model?

@caozhangjie
Copy link
Collaborator

Yes, you can divide the whole training set into 10 pieces and use 10-fold cross-validation as in classification.

@soon-will
Copy link
Author

Thank you for your reply.

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