The data that is given in this case study is about patients who were detected with two kinds of breast cancer:
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:
- 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 ...