Seaborn residplot not outputting the plot

Hi I'm trying to create residplot using seaborn. I have my true values in one np.array and my predictions in another. sns.residplot(x=y_pred, y=y_true) however seaborn outputs only an empty plot: enter image description here

I checked for nans and removed them. Also tried to call them from a data frame: sns.residplot(x='y_pred', y='y_true', data=df) # where 'y_pred' and 'y_true' are columns in the df. However I always get an empty plot. What I'm doing wrong? Thanks in advance

Read more here:

Content Attribution

This content was originally published by alextesy at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: