CMTH 642 LAB 10

$30.00

Category: Tags: , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (4 votes)

Preparation:
install.packages(“class”)
install.packages(“gmodels”)
library(class)
library(gmodels)
We will detect prostate cancer in this lab session. Download Prostate_Cancer.csv from the course shell. The
data set contains patients who have been diagnosed with either Malignant (M) or Benign (B) cancer.
Questions:
1. Check data characteristics. Is there missing data? Prepare the data for analysis.
2. Normalize the data set.
3. Divide the data to training and testing groups.
4. Use the KNN algorithm to predict the cancer.
5. Evaluate the model performance.
1