import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn import preprocessing
from sklearn.model_selection import train_test_split,GridSearchCV
from sklearn.feature_selection import SelectFromModel,RFE
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.svm import LinearSVC
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report,confusion_matrix
dataset = datasets.load_iris()
features,labels= dataset.feature_names,dataset.target_names
X,y = dataset.data,dataset.target
def plot2D(X,y):
formatter = plt.FuncFormatter(lambda i,*args:labels[int(i)])
plt.scatter(X[:,2],X[:,3],c=y,cmap=plt.cm.get_cmap('RdYlBu',3))
plt.colorbar(ticks&
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn import preprocessing
from sklearn.model_selection import train_test_split,GridSearchCV
from sklearn.feature_selection import SelectFromModel,RFE
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.svm import LinearSVC
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report,confusion_matrix
dataset = datasets.load_iris()
features,labels= dataset.feature_names,dataset.target_names
X,y = dataset.data,dataset.target
def plot2D(X,y):
formatter = plt.FuncFormatter(lambda i,*args:labels[int(i)])
plt.scatter(X[:,2],X[:,3],c=y,cmap=plt.cm.get_cmap('RdYlBu',3))
plt.colorbar(ticks&