Quality metrics (score/loss functions) are used to quantify the performance of a given model. Score functions are typically maximized (e.g. accuracy, concordance, ...) whereas loss functions should be minimized (e.g. mean squared error, error rate, ...). Optunity provides common score/loss functions for your convenience.
We use the following calling convention:
All functions listed here are available in optunity.metrics.
Score functions are typically maximized (e.g. optunity.maximize()).
Score | Associated Optunity function |
---|---|
accuracy | accuracy() |
area under ROC curve | roc_auc() |
area under PR curve | pr_auc() |
\(F_\beta\) | fbeta() |
precision/PPV | precision() |
recall/sensitivity | recall() |
specificity/NPV | npv() |
PU score | pu_score() |
Score | Associated Optunity function |
---|---|
R squared | r_squared() |
Loss functions are typically minimized (e.g. optunity.minimize()).
Score | Associated Optunity function |
---|---|
Brier score | brier() |
error rate | error_rate() |
log loss | logloss() |
Score | Associated Optunity function |
---|---|
mean squared error | mse() |
absolute error | absolute_error() |