evalml.objectives.RootMeanSquaredError.calculate_percent_difference

classmethod RootMeanSquaredError.calculate_percent_difference(score, baseline_score)

Calculate the percent difference between scores.

Parameters
  • score (float) – A score. Output of the score method of this objective.

  • baseline_score (float) – A score. Output of the score method of this objective. In practice, this is the score achieved on this objective with a baseline estimator.

Returns

The percent difference between the scores. This will be the difference normalized by the

baseline score.

Return type

float