For this assignment, you will be using the Breast Cancer Wisconsin (Diagnostic) Database to create a classifier that can help diagnose patients. First, read through the description of the dataset (below). [ ]: import numpy as np import pandas as pd from sklearn.datasets import load_breast cancer cancer = load_breast cancer() print (cancer.DESCR) # Print the data set description The object returned by load_breast cancer () is a scikit-learn Bunch object, which is similar to a dictionary. [2]: cancer.keys() NameError Cell In [2], line 1 --> 1 cancer.keys () NameError: name 'cancer' is not defined Traceback (most recent call last)

icon
Related questions
Question
For this assignment, you will be using the Breast Cancer Wisconsin (Diagnostic) Database to create a classifier that can help diagnose patients. First, read through the description of the dataset
(below).
[ ]: import numpy as np
import pandas as pd
from sklearn.datasets import load_breast cancer
cancer = load_breast cancer()
print (cancer.DESCR) # Print the data set description
The object returned by load_breast cancer() is a scikit-learn Bunch object, which is similar to a dictionary.
[2]: cancer.keys()
NameError
Cell In [2], line 1
--> 1 cancer.keys ()
NameError: name 'cancer' is not defined
Traceback (most recent call last)
Transcribed Image Text:For this assignment, you will be using the Breast Cancer Wisconsin (Diagnostic) Database to create a classifier that can help diagnose patients. First, read through the description of the dataset (below). [ ]: import numpy as np import pandas as pd from sklearn.datasets import load_breast cancer cancer = load_breast cancer() print (cancer.DESCR) # Print the data set description The object returned by load_breast cancer() is a scikit-learn Bunch object, which is similar to a dictionary. [2]: cancer.keys() NameError Cell In [2], line 1 --> 1 cancer.keys () NameError: name 'cancer' is not defined Traceback (most recent call last)
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer