abstract_metric
- class aitoolbox.experiment.core_metrics.abstract_metric.AbstractBaseMetric(y_true, y_predicted, metric_name, np_array=True)[source]
Bases:
ABC
Base metric with core metric functionality needed by all the derived actual performance metrics
- Parameters:
- get_metric_dict()[source]
Creates and return metric result key-value dict
- Returns:
metric dict
- Return type:
- _get_metric_self_other_val(other)[source]
Metric comparison prep util
- Parameters:
other (AbstractBaseMetric or float or int) – other compared metric
- Returns:
metric value
- Return type:
- __add__(other)[source]
Concatenate two metrics
- Parameters:
other (AbstractBaseMetric or dict) – new metric to be added
- Returns:
combined metric dict
- Return type:
- __radd__(other)[source]
Append another metric
- Parameters:
other (AbstractBaseMetric or dict) – new metric to be added
- Returns:
combined metric dict
- Return type:
- concat_metric(other)[source]
Concatenate another metric to this one
- Parameters:
other (AbstractBaseMetric or dict) – new metric to be added
- Returns:
combined metric dict
- Return type: