Spring 2021 Machine Learning (CS 181) Homework 2
Solutions contained in the
personal-solutions
folder
- Exploring the Bias-Variance Tradeoff
- Maximum Likelihood Estimation in Classification (for a generative K-class model)
- Comparing 4 different classifiers: (1) softmax regression, (2) generative classifier with a shared covariance matrix, (3) generative classifier with a separate covariance matrix, and (4) kNN classifier
Implementation contained in the
code
folder
- Using gradient descent, fits a sigmoid logistic regression model for three different bases
- Controller file that tests the implementation for the 4 different classifiers
- The classifier implementations are contained in
T2_P3_LogisticRegression.py
,T2_P3_GaussianGenerativeModel.py
, andT2_P3_KNNModel.py