pysad.core.BaseMetric¶
- class pysad.core.BaseMetric[source]¶
Abstract base class for metrics.
Methods
__init__
()get
()Gets the current value of the score.
update
(y_true, y_pred)Updates the metric with given true and predicted value for a timestep.
- abstract get()[source]¶
Gets the current value of the score. Note that some methods such as AUPR and AUROC gives exception when used with only one class exist in the list of previous y_trues.
- Returns:
The current score.
- Return type: