Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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