This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This commit adds precision/recall curve to the metrics api. The `Meter` object is now exposed in python. The precision/recall curve helps to decide the best threshold. It can be retrieved from the model object as follows: ```python ft = fasttext.load_model(model_file) meter = ft.get_meter(test_file) label = "__label__bakery" y_scores, y_true = meter.score_vs_true(label) precision, recall = meter.precision_recall_curve(label) ``` Reviewed By: EdouardGrave Differential Revision: D19218524 fbshipit-source-id: 41a7c8e1aa991d076df04c5e497688daf0de4673
- Loading branch information
1 parent
6d7c77c
commit 2cc7f54
Showing
15 changed files
with
421 additions
and
33 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.