Support Vector Machine, Svm, Svm Algorithm, Svm Classifier, Machine Learning.
plt.ylabel('Phi(X2)') plt.title('Feature Space') # Plot separating hyperplane in feature space w = svm_classifier.coef_[0] a = -w[0] / w[1] xx = np.linspace(-1, 1) yy = a * xx - (svm_classifier.intercept_[0]) / w[1] plt.plot(xx, yy, 'k-') plt.tight_layout() plt.show() You can find the full code in