Performance metrics¶
The aeon.performance_metrics
module contains metrics for evaluating and tuning time series models.
Metrics for assessing model performance.
Forecasting¶
|
Mean absolute scaled error (MASE). |
|
Median absolute scaled error (MdASE). |
|
Mean squared scaled error (MSSE) or root mean squared scaled error (RMSSE). |
|
Median squared scaled error (MdSSE) or root median squared scaled error (RMdSSE). |
|
Mean absolute error (MAE). |
|
Mean squared error (MSE) or root mean squared error (RMSE). |
|
Median absolute error (MdAE). |
|
Median squared error (MdSE) or root median squared error (RMdSE). |
|
Geometric mean absolute error (GMAE). |
|
Geometric mean squared error (GMSE) or Root geometric mean squared error (RGMSE). |
|
Mean absolute percentage error (MAPE) or symmetric version. |
|
Median absolute percentage error (MdAPE) or symmetric version. |
|
Mean squared percentage error (MSPE) or square root version. |
|
Median squared percentage error (MdSPE) or square root version. |
|
Mean relative absolute error (MRAE). |
|
Median relative absolute error (MdRAE). |
Geometric mean relative absolute error (GMRAE). |
|
|
Geometric mean relative squared error (GMRSE). |
|
Calculate mean of asymmetric loss function. |
|
Calculate mean linex error. |
|
Relative loss of forecast versus benchmark forecast for a given metric. |
Segmentation¶
|
Error counting the difference in the number of change points. |
|
Compute the Hausdorff distance between two sets of change points. |
|
Prediction ratio is the ratio of number of predicted to true change points. |
Anomaly Detection¶
|
Compute the range-based precision metric. |
|
Compute the range-based recall metric. |
|
Compute the F-score using the range-based recall and precision metrics. |
|
Compute the ROC AUC score. |
|
Compute the precision-recall AUC score. |
|
Compute the AUC-score of the range-based precision-recall curve. |
|
Compute the F-score at k based on single points. |
|
Compute the range-based F-score at k based on anomaly ranges. |
|
Compute the range-based PR and ROC AUC. |
|
Compute the range-based area under the ROC curve. |
|
Compute the area under the range-based PR curve. |
|
Compute the range-based PR VUS score. |
|
Compute the range-based ROC VUS score. |
AD Thresholding¶
|
Calculate a threshold based on a percentile of the anomaly scores. |
|
Calculate a threshold based on the standard deviation of the anomaly scores. |
|
Calculate a threshold such that at least k anomalous points are found. |
|
Calculate a threshold such that at least k anomalies are found. |