Created
April 3, 2020 20:56
-
-
Save phil8192/c3d50a457963e1c3fa7b93dda1f0d578 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_loss(theta, x, y): | |
wx = np.dot(x, theta) | |
return 1/x.shape[0] * np.sum(np.log(2) - 0.5 * y * wx + 0.125 * wx**2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment