Skip to content

Commit

Permalink
Merge pull request briandalessandro#15 from shuyiyu/master
Browse files Browse the repository at this point in the history
Because X1 is the on the x-axis, X2 is on the y-axis, so the range of…
  • Loading branch information
briandalessandro authored Dec 22, 2018
2 parents 413fc5c + da11aeb commit 095c670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipython/python35/Lecture_SVM_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
"w_svm = my_svm.coef_[0]; a_svm = -w_svm[0] / w_svm[1]; t_svm = my_svm.intercept_[0];\n",
"w_lr = logreg.coef_[0]; a_lr = -w_lr[0] / w_lr[1]; t_lr = logreg.intercept_[0];\n",
"\n",
"xx = np.linspace(test[['x1','x2']].iloc[:,0].min(), test[['x1','x2']].iloc[:,1].max())\n",
"xx = np.linspace(test[['x1','x2']].iloc[:,0].min(), test[['x1','x2']].iloc[:,0].max())\n",
"\n",
"yy_svm = a_svm * xx - (t_svm) / w_svm[1]\n",
"yy_lr = a_lr * xx - (t_lr) / w_lr[1]\n",
Expand Down

0 comments on commit 095c670

Please sign in to comment.