Question: Homework Assignment No: 4 Due: 6 th May 2 4 , before 1 1 : 5 9 pm . Do it in Colab, save as

Homework Assignment No: 4
Due: 6th May 24, before 11:59 pm.
Do it in Colab, save as .ipynb file format and upload on iLearn.
You are provided with a dataset containing some medical history information for 750 patients that
might be at risk of cancer. Each patient in our dataset has been biopsied to obtain a direct ground
truth label so we know each patient's actual cancer status (binary variable, 1 means has cancer, 0
means does not). We want to build classifiers to predict whether a patient likely has cancer from
easier-to-get information, so we could avoid painful biopsies unless they are necessary.
It is known that older patients with a family history of cancer have a higher probability of harboring
cancer. So we can use Age and Fam_history variables in the data as inputs to predict cancer status.
A clinical chemist has recently discovered a real-valued biomarker (called Marker in the data file)
that she believes can distinguish between patients with and without cancer. We wish to assess
whether or not the new marker does indeed identify patients with and without cancer well.
You are tasked to build and assess the performance of the following classification models:
1- Decision Tree with maximum depth of 3
2- Decision Tree with maximum depth of 5
3- Naive Bayes
4- K-Nearest Neighbors with 5 neighbors
5- K-Nearest Neighbors with 10 neighbors
6- Support Vector Machines with polynomial kernel
7- Support Vector Machines with radial basis function kernel
You need to build the above modes for each of the following two cases. For each case-model
combination, report the model accuracy. Use a test size of 25% and set the random state for data
splitting to 777. Report your answers in the table below.
1- Case 1: Predict Cancer status through Age and Family history only.
2- Case 2: Predict Cancer status through Age, Family history and the biomarker.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!