Premium problem33. Actual vs Predicted

Medium Locked

Scatter y_pred against y_true, then draw the ideal y = x line from the smallest to the largest actual value, so perfect predictions would sit exactly on it. Label the x-axis "Actual" and the y-axis "Predicted".

Return the Axes. The reference line is computed from the data range, not a fixed 0-to-1 diagonal.

Premium problem

This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.

Implement solve(...)