from sklearn.datasets import load_iris
def test():
iris = load_iris()
the code is above,my python version is python 3.6,sklearn version is 0.19.1γthe error messages is below:
Traceback (most recent call last): File "E:/pycharm/PyCharm 2017.2.3/workspace/machine-learning/DecisionTree.py", line 10, in from sklearn.datasets import load_wine File "C:\Users\10649\AppData\Roaming\Python\Python36\site-packages\sklearn\datasets__init__.py", line 25, in from .mldata import fetch_mldata, mldata_filename File "C:\Users\10649\AppData\Roaming\Python\Python36\site-packages\sklearn\datasets\mldata.py", line 12, in from urllib2 import HTTPError File "E:\python36\lib\site-packages\urllib2.py", line 220 raise AttributeError, attr ^ SyntaxError: invalid syntax
is this show that sklearn.datasets
can't use in python3
? help me, please