我试图在我的iPython笔记本(Python 2,Jupyter,Dato)上运行from sklearn.datasets import load_breast_cancer
,并获得importError:
ImportError Traceback (most recent call last)
<ipython-input-12-09d44d891711> in <module>()
----> 1 from sklearn.datasets import load_breast_cancer
ImportError: cannot import name load_breast_cancer
但如果我运行其他人,例如from sklearn.datasets import load_diabetes
,from sklearn.datasets import load_boston
。
那么如何导入load_breast_cancer
?谢谢。
答案 0 :(得分:0)
尝试dotnet xunit -method FullyQualifiedName
如果你不知道你的内核在哪里运行(如果更新你的机器没有工作,似乎它被托管在其他地方),在笔记本电脑单元中运行pip install --upgrade sklearn
。 / p>