July 2017
Intermediate to advanced
382 pages
9h 13m
English
The full dataset is part of scikit-learn's example datasets. We can import it using the following commands:
In [1]: from sklearn import datasets... data = datasets.load_breast_cancer()
As in the previous examples, all data is contained in a 2D feature matrix data.data, where the rows represent data samples and the columns are the feature values:
In [2]: data.data.shapeOut[2]: (569, 30)
With a look at the provided feature names, we recognize some that we mentioned earlier:
In [3]: data.feature_namesOut[3]: array(['mean radius', 'mean texture', 'mean perimeter', 'mean area', 'mean smoothness', 'mean compactness', 'mean concavity', 'mean concave points', 'mean symmetry', 'mean fractal dimension', 'radius error', 'texture ...
Read now
Unlock full access