-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix specificity calculation for CBPE (#334)
* fix specificity calculation for CBPE * Feature/multiclass confusion matrix (#287) * create tester * Updated tester * multiclass cm performance estimation * Multiclass confusion matrix calc. and estimation + docs and tests for both * Removed scratch testing files * updating MCM docs * Re-align docs with main version * [skip ci] Update CHANGELOG.md --------- Co-authored-by: Nikolaos Perrakis <[email protected]> Co-authored-by: Niels Nuyttens <[email protected]> * Small refactor to checks in realized performance calculations to make them consistent with the dedicated realized performance calculator. * Fix broken tests * Fix linting errors due to merges --------- Co-authored-by: Carter Blair <[email protected]> Co-authored-by: Niels Nuyttens <[email protected]>
- Loading branch information
1 parent
80507da
commit 58d44bc
Showing
4 changed files
with
586 additions
and
65 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
nannyml/performance_calculation/metrics/binary_classification.py
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Author: Niels Nuyttens <[email protected]> | ||
# | ||
# License: Apache Software License 2.0 | ||
import warnings | ||
from typing import Any, Dict, List, Optional, Tuple, Union | ||
|
||
import numpy as np | ||
import pandas as pd | ||
from sklearn.metrics import confusion_matrix, f1_score, precision_score, recall_score, roc_auc_score | ||
import warnings | ||
|
||
from nannyml._typing import ProblemType | ||
from nannyml.base import _list_missing | ||
|
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.