I am trying to create a Pipeline using sklearn.pipeline using Jupyter: Anaconda 4.3.24, python 2.7 .
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_recall_fscore_support
from sklearn.naive_bayes import GaussianNB
from sklearn.svm import SVC
from sklearn.pipeline import Pipeline
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.feature_selection import SelectFromModel
from collections import defaultdict
from pprint import pprint
But I get an error related to the utils directory as shown below:
ImportError: Unable to import Bunch name:

Also, when I comment on a line
from sklearn.pipeline import Pipeline
I again get the error related to the utils directory in the following line:

Can someone point me in the right direction?
source
share