-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add neg class score for binary precision, recall, f1 and max f1 (#788)
* add perplexity with Mistral_7B_Instruct_v2 Signed-off-by: lilacheden <[email protected]> * add perplexity test Signed-off-by: lilacheden <[email protected]> * avoid test memory issues Signed-off-by: lilacheden <[email protected]> * round traversed thresholds for max f1 to 3 Signed-off-by: lilacheden <[email protected]> * processor for extracting model prediction enclosed in double brackets Signed-off-by: Ariel Gera <[email protected]> * fix syntax error Signed-off-by: lilacheden <[email protected]> * fix code formatting Signed-off-by: lilacheden <[email protected]> * add modified metrics to catalog Signed-off-by: lilacheden <[email protected]> * change template name Signed-off-by: lilacheden <[email protected]> * remove perplexity with mistral Signed-off-by: lilacheden <[email protected]> * add neg class score for binary precision, recall, f1 and max f1 Signed-off-by: lilacheden <[email protected]> * allow spearman metric to receive str inputs Signed-off-by: lilacheden <[email protected]> * support running AbstractLM on local Apple GPU Signed-off-by: lilacheden <[email protected]> * Support Unions in metric prediction_type Signed-off-by: lilacheden <[email protected]> * add processor cast_to_float_return_nan_if_failed Signed-off-by: lilacheden <[email protected]> * Make prediction_type of metrics numeric (float or int) Modified Metrics: "metrics.kendalltau_b", "metrics.roc_auc","metrics.f1_binary","metrics.accuracy_binary", "metrics.precision_binary", "metrics.recall_binary", "metrics.max_f1_binary", "metrics.max_accuracy_binary", Signed-off-by: lilacheden <[email protected]> * Adjust coedit task and template to metrics change Signed-off-by: lilacheden <[email protected]> * Adjust test_task_metrics_type_checking to metrics change Signed-off-by: lilacheden <[email protected]> * Adjust test_artifact_loading_with_overwrite_args_list to metrics change Signed-off-by: lilacheden <[email protected]> * revert support running AbstractLM on local Apple GPU Signed-off-by: lilacheden <[email protected]> --------- Signed-off-by: lilacheden <[email protected]> Signed-off-by: Ariel Gera <[email protected]> Co-authored-by: Ariel Gera <[email protected]> Co-authored-by: Elron Bandel <[email protected]>
- Loading branch information
1 parent
6cade91
commit 4775531
Showing
13 changed files
with
186 additions
and
84 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
21 changes: 21 additions & 0 deletions
21
src/unitxt/catalog/processors/cast_to_float_return_nan_if_failed.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "sequential_operator", | ||
"steps": [ | ||
{ | ||
"type": "cast_fields", | ||
"fields": { | ||
"prediction": "float" | ||
}, | ||
"failure_defaults": { | ||
"prediction": NaN | ||
} | ||
}, | ||
{ | ||
"type": "cast_fields", | ||
"fields": { | ||
"references": "float" | ||
}, | ||
"process_every_value": true | ||
} | ||
] | ||
} |
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.