-2

enter image description here

I tried to run something on jupyter notebook and I got this problem. does anyone know how to solve it?

Syfer
  • 4,262
  • 3
  • 20
  • 37
Dor Lasri
  • 7
  • 1

1 Answers1

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