sharpness
metrics.sharpness(y_pred_lower, y_pred_upper)
Compute the sharpness of the prediction intervals.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
y_pred_lower |
ndarray |
A 1D array of lower bounds of the predicted intervals. | required |
y_pred_upper |
ndarray |
A 1D array of upper bounds of the predicted intervals. | required |
Returns
| Type | Description |
|---|---|
float |
The average width of the predicted intervals. |