Not able to import PolynomialFeatures, make_pipeline in Scikit-learn

scikit-learn

Solution

Polynomial Features is included for next version of scikit-learn and is not available in 0.14.1. Please update to 0.15-git if you want to use it. The same holds for make pipeline.

To get the bleeding edge version:

git clone git://github.com/scikit-learn/scikit-learn.git

python setup.py build_ext --inplace

Please read: http://scikit-learn.org/stable/developers/index.html#git-repo

Problem

I'm not able to import the following modules in an ipython notebook: ``` from sklearn.preprocessing import PolynomialFeatures from sklearn.pipeline import make_pipeline ``` The following error pops up ImportError: cannot import name PolynomialFeatures The same error also appears for `make_pipeline`. I'm a newbie in scikit-learn, please help out. I'm using the miniconda installation of python and the version number for scikit-learn is 0.14.1.

Original source