Skip to content

tuhinaprasad28/Multiclass-Logistics-and-Classification-Pipelines

Repository files navigation

Multiclass Logistic Basics:

Write a function to compute the ({multiclass}) logistic loss ({also called the cross-entropy loss}) given the parameters $(W,b)$ of a linear model (as numpy arrays) and an example $(x,y)$.

Add an l1 regularization and an l2 regularization to the loss function.

Classification Pipeline:

Generate data from Data_Linear_Classifier.ipynb.

Split the data into test and train (20%:80%).

Build a linear classifier assuming the multiclass logistic loss and an l2 regularization for the weights only. Report the prediction accuracy on the training data and the test data and show appropriate plots.

Introduce a cross validation scheme and justify your choice of parameters. What is the validation accuracy compare to the test accuracy.

What is the sensitivity of the model's performance to different learning rates and the number of gradient descent iterations. Describe via suitable plots.

What is the sensitivity of the model's performance to different regularization parameter values. Find the best regularization parameter using an exhaustive search procedure. Describe your choice via suitable plots. What is the performance difference between using regularization and no regularization?

What is the sensitivity of the model's performance with respect to a different test train split (e.g., 50%:50%).