himalaya.scoring.l2_neg_loss

himalaya.scoring.l2_neg_loss(y_true, y_pred)[source]

L2 negative loss, computed for multiple predictions.

Parameters
y_truearray or Tensor of shape (n_samples, n_targets)

Ground truth.

y_predarray or Tensor of shape (n_predictions, n_samples, n_targets) or (n_samples, n_targets)

Predictions.

Returns
l2array of shape (n_predictions, n_targets) or (n_targets, )

L2 negative losses.