Programming, Data Science, Machine Learning, Python.
point assuming a linear function pred = np.dot(X, self.w) + self.b return np.sign(pred) 4. Applying it to the Iris dataset Finally, let's use our freshly made SVM implementation to classify the Iris dataset from the scikit-learn library: from sklearn import datasets iris = datasets.load_iris() X =