This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add evaluation_loss to the estimator base class. #16888
Merged
Merged
Conversation
This file contains 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
leezu
reviewed
Nov 22, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Please see comment below
Could you also add a test case to https://github.com/apache/incubator-mxnet/blob/master/tests/python/unittest/test_gluon_estimator.py to prevent future regressions of this feature |
leezu
reviewed
Nov 25, 2019
@@ -59,6 +59,8 @@ class Estimator(object): | |||
Trainer to apply optimizer on network parameters. | |||
context : Context or list of Context | |||
Device(s) to run the training on. | |||
evaluation_loss: gluon.loss.loss | |||
Loss (objective) function to calculate during evaluation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear that evaluation_loss
will use loss
if it is None. Could you improve the description here?
leezu
approved these changes
Nov 25, 2019
ptrendx
pushed a commit
to ptrendx/mxnet
that referenced
this pull request
Nov 25, 2019
* Add evaluation_loss to the estimator base class. * Update the base estimator class to support the separate evaluation loss. * Add evaluation loss to the base estimator class. * Add unittest for evaluation loss in the test_evaluation function * Update estimator.py * Update estimator.py
ptrendx
added a commit
that referenced
this pull request
Nov 26, 2019
* refactor and reduce float types for some functions, also add bitwise_xor (#16827) * Mixed precison binary op backward (use in) for numpy (#16791) * mixed precison binary op backward * reduce unix cpu runtime * Add evaluation_loss to the estimator base class. (#16888) * Add evaluation_loss to the estimator base class. * Update the base estimator class to support the separate evaluation loss. * Add evaluation loss to the base estimator class. * Add unittest for evaluation loss in the test_evaluation function * Update estimator.py * Update estimator.py
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
[Bug_fix] Add evaluation loss member in estimator class. The purpose of add the evaluation loss is to decouple the training loss with the evaluation loss in the fit_batch() and evaluate_batch() methods. Please refer to the issue for further information: #16879