Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adarsh1021
Last active September 16, 2018 13:39
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 adarsh1021/926d654d98583fe032db89600a89a1cc to your computer and use it in GitHub Desktop.
Save adarsh1021/926d654d98583fe032db89600a89a1cc to your computer and use it in GitHub Desktop.
# Making predictions
Y_pred = m*X + c
plt.scatter(X, Y)
plt.plot([min(X), max(X)], [min(Y_pred), max(Y_pred)], color='red') # regression line
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment