I tried to run something on jupyter notebook and I got this problem. does anyone know how to solve it?
Asked
Active
Viewed 822 times
-2
-
Show us the code where you define load_breast_cancer(). The message says it can't be found. – Mozahler Jun 03 '18 at 18:57
-
i didn't. that's the only code and the datasets are in the sklearn file where it should be. how do I define it? – Dor Lasri Jun 03 '18 at 20:06
1 Answers
1
You are trying to load the dataset without having imported it first.
You need to import sklearn datasets
.
Use this:
from sklearn.datasets import load_breast_cancer
data = load_breast_cancer()
This should work fine.

seralouk
- 30,938
- 9
- 118
- 133