问题描述
我无法在 ipython 笔记本中导入以下模块:
from sklearn.preprocessing import PolynomialFeatures从 sklearn.pipeline 导入 make_pipeline
弹出如下错误
导入错误:无法导入名称多项式特征
make_pipeline
也会出现同样的错误.
我是 scikit-learn 的新手,请帮忙.
我使用的是 miniconda 安装的 python,scikit-learn 的版本号是 0.14.1.
多项式特征包含在 scikit-learn 的下一版本中,但在 0.14.1 中不可用.如果你想使用它,请更新到 0.15-git.make 管道也是如此.
要获得最前沿的版本:
git clone git://github.com/scikit-learn/scikit-learn.gitpython setup.py build_ext --inplace
请阅读:http://scikit-learn.org/stable/developers/index.html#git-repo
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
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.
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
这篇关于无法在 Scikit-learn 中导入 PolynomialFeatures、make_pipeline的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!