January 2019
Intermediate to advanced
294 pages
6h 43m
English
Here, we are taking a breast cancer dataset wherein we have classified according to whether the cancer is benign/malignant.
The following is for importing all the required libraries:
import pandas as pdimport numpy as npfrom sklearn import svm, datasetsfrom sklearn.svm import SVCimport matplotlib.pyplot as pltfrom sklearn.model_selection import train_test_splitfrom sklearn.model_selection import GridSearchCVfrom sklearn.metrics import classification_reportfrom sklearn.utils import shuffle%matplotlib inline
Now, let's load the breast cancer dataset:
BC_Data = datasets.load_breast_cancer()
The following allows us to check the details of the dataset:
print(BC_Data.DESCR)
This if for ...
Read now
Unlock full access