The project model of AI and ml but at last step it’s showing name error, after resolving this, it’s again showing value error and attribute error can anyone tell correct code :
NameError
Cell In[22], line 3
1 import matplotlib.pyplot as plt
2 plt.scatter(x_test,y_test)
----> 3 plt.plot(x_test, y_pred_test, color="red")
4 plt.xlabel("Temperature")
5 plt.ylabel("Revenue")
NameError: name 'y_pred_test' is not defined
I expect that output should be successful. But it doesn’t
New contributor
Manthan Sarve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.