Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 20, 2020 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/e81d8c09b433751de030f88938e9d5c2 to your computer and use it in GitHub Desktop.
Save amankharwal/e81d8c09b433751de030f88938e9d5c2 to your computer and use it in GitHub Desktop.
y_pred = model.predict(X_test)
plt.plot(y_test, y_pred, '.')
# plot a line, a perfit predict would all fall on this line
x = np.linspace(0, 330, 100)
y = x
plt.plot(x, y)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment