Skip to content

Instantly share code, notes, and snippets.

@RobotGyal
Created May 27, 2020 21:39
Show Gist options
  • Save RobotGyal/35813c04d10e7b88a49bca8776a435f5 to your computer and use it in GitHub Desktop.
Save RobotGyal/35813c04d10e7b88a49bca8776a435f5 to your computer and use it in GitHub Desktop.
w1 = 0.05034768176424329
w0 = 0.6504410345649969
y_pred = w1*x+w0
plt.scatter(x, y)
plt.plot([min(x), max(x)], [min(y_pred), max(y_pred)], 'r') # regression line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment