-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore the updates when weights are 0s and return the default value (#…
…283) Summary: Pull Request resolved: #283 For a multi-task multi-label (MTML) model, sometimes we intentionally set weights = 0 for the model effectively ignore the data. In terms of metrics calculation, we should - ignore this update if weights for all tasks are 0 - ignore the metric result and output 0 (metric's default value) if the weights for a tasks are 0 Previously if weights = 0, there would be some NAN values for metrics and triggered metric health related alerts. This change fixes it Reviewed By: fegin Differential Revision: D36114064 fbshipit-source-id: 42f6aba1b0dcee56f045487ff6b99cc9935c2d1c
- Loading branch information
1 parent
16f68da
commit 0ef6a3e
Showing
2 changed files
with
87 additions
and
35 deletions.
There are no files selected for viewing
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
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