dask_ml.preprocessing.MinMaxScaler属性错误

时间:2018-05-27 13:53:34

标签: dask

我刚刚下载了dask_ml,我无法使用预处理类。

我先试试

scaler = dask_ml.preprocessing.MinMaxScaler(feature_range=(0,1))

但我得到了

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'dask_ml' has no attribute 'preprocessing'

然后我尝试了以下内容:

from dask_ml.preprocessing import MinMaxScaler

我得到了

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/root/anaconda3/lib/python3.6/site-
packages/dask_ml/preprocessing/__init__.py", line 3, in <module>
from .data import (  # noqa
File "/var/root/anaconda3/lib/python3.6/site-m 
packages/dask_ml/preprocessing/data.py", line 158, in <module>
class QuantileTransformer(skdata.QuantileTransformer):
AttributeError: module 'sklearn.preprocessing.data' has no attribute 
'QuantileTransformer'

这是什么意思?你有什么建议让它发挥作用。

0 个答案:

没有答案