Skip to content

Instantly share code, notes, and snippets.

@antondevv
Created September 22, 2021 13:21
Show Gist options
  • Save antondevv/aa7b173eb0a7a29b9777cd757f596104 to your computer and use it in GitHub Desktop.
Save antondevv/aa7b173eb0a7a29b9777cd757f596104 to your computer and use it in GitHub Desktop.
for i in range(times_to_iterate):
m, b = gradient_descent(m, b, data, Learning_rate)
plt.scatter(data['weight'], data['height'])
plt.plot(list(range(0, 5)), [m * x + b for x in range(0 , 5)], color="red")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment