-2
from sklearn import datasets
iris=datasets.load_iris
X = iris.data
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-15-12a2d725131f> in <module>()
----> 1 X = iris.data
AttributeError: 'function' object has no attribute 'data
I load iris dataset from sklearn ,but when i write "X = iris.data",an error occur as "AttributeError: 'function' object has no attribute 'data'"
你嘗試調用該函數? –