mae
metrics.mae(y_true, y_pred)
Compute the Mean Absolute Error (MAE).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
y_true |
ndarray |
A 1D array of the true target values. | required |
y_pred |
ndarray |
A 1D array of the predicted target values. | required |
Returns
| Type | Description |
|---|---|
float |
The MAE between the true and predicted target values. |