-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Rename old BinaryAUC metric to BinarySparseAUC(used by text_classi…
…fier) and create a new BinaryAUC metric which does not expect sparse inputs. 2. Add auc, precision, and recall metrics to binary classification and multi-label classification settings. Add 3 extra hparams of `desired_precisions`, `desired_recalls`, and `desired_thresholds` for precision and recall metrics. Keep the existing behavior by having the default `desired_thresholds`=[0.25, 0.5, 0.75] 3. Add best model checkpointing mechanism 4. Add load_model and save_model api 5. Put create_model, metrics, optimizer onto tpu strategy 6. Add **kwargs to evaluate() method to allow setting evaluate(return_dict=True) PiperOrigin-RevId: 635992287
- Loading branch information
1 parent
40f9bf4
commit b41777d
Showing
8 changed files
with
239 additions
and
59 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
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
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
Oops, something went wrong.