Assignment 1
The assignment
DATASETS
(Use load to load a dataset in MATLAB, e.g., load a1_regression_1)
LOGISTIC REGRESSION STARTER CODE
logisticStarter.m
This sample MATLAB code implements gradient descent with line search, and also provides a facility to check your gradients numerically. Your job is to implement the function logisticNLP.m that takes the input data and some weights, and returns:
- The negative log-posterior of the weights for the data.
- The gradient of the negative log-posterior with respect to the weights
You may modify this code however you wish. It is not required that you use this code for the assignment.