evalml.objectives.MAPE

class evalml.objectives.MAPE[source]

Mean absolute percentage error for time series regression. Scaled by 100 to return a percentage.

Only valid for nonzero inputs. Otherwise, will throw a ValueError

name = 'Mean Absolute Percentage Error'
greater_is_better = False
perfect_score = 0.0
positive_only = True
problem_types = [<ProblemTypes.TIME_SERIES_REGRESSION: 'time series regression'>]
score_needs_proba = False

Methods

__init__

Initialize self.

calculate_percent_difference

Calculate the percent difference between scores.

is_defined_for_problem_type

objective_function

Computes the relative value of the provided predictions compared to the actual labels, according a specified metric

score

Returns a numerical score indicating performance based on the differences between the predicted and actual values.

validate_inputs

Validates the input based on a few simple checks.

Class Inheritance

Inheritance diagram of MAPE