Separate train an eval for estimator#22
Open
seemuch wants to merge 2 commits intoresnet_perf_tweaksfrom
Open
Conversation
anj-s
reviewed
Nov 9, 2018
| name='eval_only', default=False, | ||
| help=flags_core.help_wrap('Skip training and only perform evaluation on ' | ||
| 'the latest checkpoint.')) | ||
| name='skip_eval', default=False, |
Collaborator
There was a problem hiding this comment.
Why not add 'skip_eval' instead of modifying an existing flag?
anj-s
reviewed
Nov 9, 2018
|
|
||
| if flags_obj.eval_only or not flags_obj.train_epochs: | ||
| # If --eval_only is set, perform a single loop with zero train epochs. | ||
| if not flags_obj.train_epochs: |
Collaborator
There was a problem hiding this comment.
When is this true given we have a default value for train_epochs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
...by changing the flag "eval_only" to "skip_eval". It is still possible to do eval only, by setting the training epoch to 0, and skip eval to false.
This way, it is possible to do both training only and evaluation only.