import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
iris = datasets.load_iris()
X = iris.data
y = iris.target
X = X[y<2,:2]
#print(X)
y = y[y<2]
plt.scatter(X[y==0,0],X[y==0,1],color ='red')
plt.scatter(X[y==1,0],X[y==1,1],color ='blue')
plt.show()
from sklearn.preprocessing import StandardScaler
standardScaler = StandardScaler()
standardScaler.fit(X)
X_standard = standardScaler.transform(X)
from sklearn.svm import LinearSVC
svc =LinearSVC(C=1e9)
svc.fit(X_standard,y)