pyanno4rt.learning_model.evaluation.metrics._f1
F1 computation.
Overview
|
Compute the F1 scores. |
Functions
- pyanno4rt.learning_model.evaluation.metrics._f1.f1(true_labels, predicted_labels)[source]
Compute the F1 scores.
- Parameters:
true_labels (ndarray) – Ground truth label values.
predicted_labels (tuple) – Tuple of arrays with the training and out-of-folds labels predicted by the machine learning outcome model.
- Returns:
scores – Dictionary with the training and out-of-folds F1 scores and the location of the best score.
- Return type:
dict