We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eac77f commit e7b815fCopy full SHA for e7b815f
SVM/SVM_scikit-learn.py
@@ -46,7 +46,7 @@ def plot_decisionBoundary(X,y,model,class_='linear'):
46
if class_=='linear':
47
w = model.coef_
48
b = model.intercept_
49
- xp = np.linspace(np.min(X[:,0]),np.max(X[:,1]),100)
+ xp = np.linspace(np.min(X[:,0]),np.max(X[:,0]),100)
50
yp = -(w[0,0]*xp+b)/w[0,1]
51
plt.plot(xp,yp,'b-',linewidth=2.0)
52
plt.show()
0 commit comments