Created
April 3, 2020 20:58
-
-
Save phil8192/c3d692869087206ad531702d0d6d26ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def taylor_gradient(theta, x, y): | |
return 1/x.shape[0] * np.dot(0.25 * np.dot(x, theta) - 0.5 * y, x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment