mean_fair_error

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

Computes Mean Fair Error.

Parameters:
  • y_true (ndarray) – True target values.

  • y_pred (ndarray) – Predicted target values.

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

  • c (float) – Metric coefficient.

Return type:

float

Returns:

Metric value.