尝试导入决策树分类器时出错

Error when trying to import decision tree classifier

这是我遇到的错误。

this is the error I am getting:
ImportError: cannot import name 'DecesionTreeClassifier' from 'sklearn.tree' (C:\Users\Shrey\anaconda3\lib\site-packages\sklearn\tree_init_.py)

ImportError: cannot import name 'DecesionTreeClassifier' from 'sklearn.tree' (C:\Users\Shrey  
\anaconda3\lib\site-packages\sklearn\tree\__init__.py)

正确的导入语句:

from sklearn.tree import DecisionTreeClassifier

您的导入语句中存在拼写错误:DecesionTreeClassifier