Skip to main content

Installation

safe_roc_auc_score

View source
Compute the Area Under the Receiver Operating Characteristic Curve (ROC AUC) score. This function is a safe wrapper around sklearn.metrics.roc_auc_score that handles cases where the input data may have missing classes or binary classification problems.
Parameters
Returns
Raises ValueError If there are missing classes in y_true that cannot be handled.

score_classification

View source
General function to score classification predictions.
Parameters
Returns
Raises ValueError If an unknown metric is specified.

score_regression

View source
General function to score regression predictions.
Parameters
Returns
Raises ValueError If an unknown metric is specified.