evalml.model_understanding.graph_prediction_vs_actual

evalml.model_understanding.graph_prediction_vs_actual(y_true, y_pred, outlier_threshold=None)[source]

Generate a scatter plot comparing the true and predicted values. Used for regression plotting

Parameters
  • y_true (ww.DataColumn, pd.Series) – The real target values of the data

  • y_pred (ww.DataColumn, pd.Series) – The predicted values outputted by the regression model.

  • outlier_threshold (int, float) – A positive threshold for what is considered an outlier value. This value is compared to the absolute difference between each value of y_true and y_pred. Values within this threshold will be blue, otherwise they will be yellow. Defaults to None

Returns

plotly.Figure representing the predicted vs. actual values graph