mean_absolute_percentage_error

lightautoml.tasks.common_metric.mean_absolute_percentage_error(y_true, y_pred, sample_weight=None)[source]

Computes Mean Absolute Percentage error.

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

  • y_pred (ndarray) – Predicted target values.

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

Return type:

float

Returns:

Metric value.