passing an extra argument to GenericUnivariateSelect without scope tricks

Issue EDIT: here is the complete traceback if I apply the make_scorer workaround suggested in the answers… `File “________python/anaconda-2.7.11-64/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py”, line 880, in runfile execfile(filename, namespace) File “”________python/anaconda-2.7.11-64/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py”, line 94, in execfile builtins.execfile(filename, *where) File “”________/main_”________.py”, line 43, in <module> “_________index.fit(X,Y

Continue reading

plotting Iris Classification

Issue The code below classifies three groups of Iris through the Decision Tree classifier. import pandas as pd from sklearn import datasets from sklearn.model_selection import train_test_split, cross_val_score, KFold from sklearn.tree import DecisionTreeClassifier iris = datasets.load_iris() dataset = pd.DataFrame(iris[‘data’], columns=iris[‘feature_names’]) dataset[‘target’]

Continue reading