Skip to content

Instantly share code, notes, and snippets.

@ken5scal
Last active December 7, 2015 03:50
Show Gist options
  • Save ken5scal/3bf0bce60787abe1fdf7 to your computer and use it in GitHub Desktop.
Save ken5scal/3bf0bce60787abe1fdf7 to your computer and use it in GitHub Desktop.
[初心者向け]機械学習におけるベクトル化 入門 ref: http://qiita.com/kengoscal/items/f1c949a089f3ca233af5
h = activate_function(z)
grad = 1 / m * (X'*(h-y))
h = activate_function(z)
grad = 1/m * np.dot(X.T, h-y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment