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

save model #824

Open
xuezzz opened this issue Apr 4, 2020 · 3 comments
Open

save model #824

xuezzz opened this issue Apr 4, 2020 · 3 comments
Labels

Comments

@xuezzz
Copy link

xuezzz commented Apr 4, 2020

How to save the best model of dev data,and use this model to evaluate test data ? Thanks!

@xuezzz xuezzz added the question label Apr 4, 2020
@faneshion
Copy link
Member

You can refer the EvaluateAllMetrics in the matchzoo/engine/callbacks to see the policy of saving models. We save the models according the params once_every.

@xuezzz
Copy link
Author

xuezzz commented Apr 10, 2020

So I can save models every epoch, but i can't only save the best model?

@luozhouyang
Copy link

tf.keras.callbacks.ModelCheckpoint has an arugument save_best_only, you can use this callback to save the best model.

ModelCheckpoint

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

No branches or pull requests

3 participants