mean_huber_error

lightautoml.tasks.common_metric.mean_huber_error(y_true, y_pred, sample_weight=None, a=0.9)[source]

Computes Mean Huber Error.

Parameters
  • y_true (ndarray) – True target values.

  • y_pred (ndarray) – Predicted target values.

  • sample_weight (Optional[ndarray]) – Specify weighted mean.

  • a (float) – Metric coefficient.

Return type

float

Returns

Metric value.