Bases: Loss
The usual square loss (y_true - y_pred)**2
used to estimate E[Y|X=x]
.
Methods
-
__call__(y_true: ndarray, y_pred: ndarray | dict) → ndarray[source]
Compute the loss function.
- Parameters:
-
- Returns:
the loss value with first dimension n_samples
.
- Return type:
np.ndarray