Linear, Logistic and Ridge Regression
Linear Regression
Dataset from linRegData.npy. The data is a matrix (100, 2). Column 1 is and Column 2 is . Data is be read using . Given a function , using linear regression a program to find the line which best fits the data.
Ridge Regression
Dataset from linRegData.npy. The data is a matrix (100, 2). Column 1 is and Column 2 is . Data can be read using . For this exercise, fit a polynomial of degree 15 to the data using ridge regression. I.e. is converted to . Using 5-fold cross validation, estimating the best from the set,
Logistic Regression
training a basic logistic regression classifier to classify two set of digits from the MNIST dataset. After preprocessing, the dataset loaded contains only digits 0 and 1. logReg.py implements logistic regression. The below plot shows training error vs. iterations.