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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.