Question: Given the admission dataset, implement the following tasks in Python. ( a ) Consider admit and notdmit samples only. Assume data follow a joint normal
Given the admission dataset, implement the following tasks in Python.
a Consider admit and notdmit samples only. Assume data follow a joint normal distribution. Build a Bayes classifier and evaluate its performance using a fold cross validation approach. You will need to randomly split the dataset into subsets. subsets are used for training your classifier and the remaining subset is used for testing purpose. Repeat training and testing for all combinations of subsets. Construct confusion matrices and then calculate accuracies for both training and
testing datasets. You can set a cutoff if needed.
b Consider admit and notdmit samples only. Build a KNN classifier and evaluate its
performance using a fold cross validation approach. You will need to randomly split the dataset into subsets. subsets are used for training your classifier and the remaining subset is used for testing purpose. Repeat training and testing for all combinations of subsets. Construct confusion matrices and then calculate accuracies for both training and testing datasets. Specify k and distance measurement on your own.
c Standardize or rescale both datasets and redo parts a and b
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
