Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Created October 9, 2013 13:18
Show Gist options
  • Save lastlegion/6901142 to your computer and use it in GitHub Desktop.
Save lastlegion/6901142 to your computer and use it in GitHub Desktop.
learning step
for i in range(1, iters):
h = hypothesis(X,w)
j=0
for j in range(0,10):
#misclassification
if not h.item(j) == y.item(j):
w = np.add(w, ((X[j]*y.item(j))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment