conn2res.performance.root_mean_squared_error

conn2res.performance.root_mean_squared_error(y_true, y_pred, sample_weight=None, multioutput='uniform_average', normalize=True, **kwargs)[source]

Root mean squared error. If normalize is True, the error is normalized by the variance of y_true.

Parameters:
  • y_true (numpy.ndarray) – Ground truth target values.

  • y_pred (numpy.ndarray) – Predicted target values.

  • sample_weight (numpy.ndarray) – Sample weights.

  • multioutput (str) –

    Defines aggregating of multiple output scores:

    ‘raw_values’ : Returns a full set of scores in case of multioutput input.

    ‘uniform_average’ : Scores of all outputs are averaged with uniform weight.

  • normalize (bool) – If True normalizes error by variance of y_true

Returns:

error – A floating point value or an array of floating point values, one for each individual target.

Return type:

float or ndarray of floats.