Programming, Data Science, Machine Learning, Python.
Versicolor samples: X = data[:100,[0,2]] y = target[target<2] y = np.where(y==0, -1, 1) Then, we'll separate our data into train and test datasets to perform our classification: Scatter plot of train data. Now, we're able to instantiate our model, train it and perform predictions over the test