I am trying to plot the scatter and fitting line plot with below code

sns.regplot(x='np.array(Y_test)',y='model.predict(X_test)')

plt.show()

Error is showing

Must pass `data` if using named variables.

x are the actual value and y are the predicted value of test variable.

Then what data I have to pass

Similar questions and discussions