Case study

The data that is given in this case study is about patients who were detected with two kinds of breast cancer:

  • Malignant
  • Benign

A number of features are given here that have characteristics in regard to the cell nuclei that have been computed from the fine-needle aspiration (FNA) of a breast mass. Based on these features, we need to predict whether the cancer is malignant or benign. Follow these steps to get started:

  1. Import all the required libraries:
import numpy as npimport pandas as pdimport seaborn as snsimport matplotlib.pyplot as plt%matplotlib inlinefrom sklearn import preprocessingfrom sklearn.model_selection import train_test_splitfrom sklearn.metrics import confusion_matrix#importing our parameter tuning dependencies ...

Get Machine Learning Quick Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.