Metrics
siapy.models.metrics
¶
ClassificationMetrics
¶
Bases: NamedTuple
RegressionMetrics
¶
Bases: NamedTuple
normalized_RMSE
¶
normalized_RMSE(y_true: ndarray, y_pred: ndarray, normalize_by: Literal['range', 'mean'] = 'range')
PARAMETER | DESCRIPTION |
---|---|
y_true |
TYPE:
|
y_pred |
TYPE:
|
normalize_by |
TYPE:
|
Source code in siapy/models/metrics.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
calculate_classification_metrics
¶
calculate_classification_metrics(y_true, y_pred, average: Literal['micro', 'macro', 'samples', 'weighted', 'binary'] | None = 'weighted')
PARAMETER | DESCRIPTION |
---|---|
y_true |
|
y_pred |
|
average |
TYPE:
|
Source code in siapy/models/metrics.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
calculate_regression_metrics
¶
calculate_regression_metrics(y_true, y_pred)
PARAMETER | DESCRIPTION |
---|---|
y_true |
|
y_pred |
|
Source code in siapy/models/metrics.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|