himalaya.scoring.correlation_score

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

Correlation score, 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
correlationsarray of shape (n_predictions, n_targets) or (n_targets, )

Correlation scores.