Ques. Generative methods vs Discriminative methods (50 points) Please download the breast cancer data set from UCI Machine Learning repository. Do not use any package/tool for implementing the algorithms; You can use packages for matrix/vector operations and data processing.

1. (20 pts) Implement a logistic regression classifier with maximum likelihood (ML) estimator using Stochastic gradient descent and Mini-Batch gradient descent algorithms. Divide the data into training and testing. Choose a proper learning rate. Use cross-validation on the training data to choose the best model and report the recall, precision, and accuracy on malignant class prediction (class label malignant is positive) on the test data using the best model. Write down each step of your solution.

Public Answer

RY5L4T The First Answerer