Skip to content

Instantly share code, notes, and snippets.

@curiousily
Created March 30, 2019 22:24
Show Gist options
  • Save curiousily/8350a64ed37f612adb4857ed97666b50 to your computer and use it in GitHub Desktop.
Save curiousily/8350a64ed37f612adb4857ed97666b50 to your computer and use it in GitHub Desktop.
for w in np.arange(-1, 1, 0.1):
y_hat = predict(x=X[0], w=w)
print(loss(y_hat, y[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment