-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation error #1
Comments
The code inside the "for" loop is missing
Also add w = svm_sgd_plot(X,y) in cell [9] before you plot the graph.
|
Thanks @ajclaros, that fixes some of the problems. However the last section still doesn't quite work for me.
Any ideas? Is this even relevant? I'm still trying to wrap my head around some of the code... Cheers |
@sebkouba can you reproduce the problem when running from terminal instead of ipython? |
@sebkouba try to put w = svm_sgd_plot(X,y) on the top after the end of function Add our test samplesplt.scatter(2,2, s=120, marker='_', linewidths=2, color='yellow') Print the hyperplane calculated by svm_sgd()x2=[w[0],w[1],-w[1],w[0]] x2x3 =np.array([x2,x3]) ` |
Hi, I'm getting an
on the
#lets perform stochastic gradient descent to learn the seperating hyperplane between both classes
cell.I'm running this on:
on the latest current commit caa60de
The text was updated successfully, but these errors were encountered: