COMSCI260-Machine Learning Algorithms Solved

35.00 $

Category:

Description

Rate this product

Problem Description.

In this homework, you are asked to implement and solve linear Logistic Regression model and Linear SVM model (without regularization term) on MNIST dataset. In this task, you only need to perform binary classification on digit 0 and 1. Details of these models could be found in lecture 2 slides. We provide a skeleton code for data loading and iterations of training data. You are asked to implement the rest of training in Pytorch code. You are required to optimize the model by using SGD and Momentum methods. Detailed submission requirements are written in the final section.

Resources

You can follow the setup instructions at https://pytorch.org/get-started/locally/.

A useful tutorial on learning pytorch by examples at https://pytorch.org/tutorials/beginner/pytorch_ with_examples.html.

More illustrations of different optimizers could be found here: http://ruder.io/optimizing-gradient-descent/.

Data

We use MNIST digit classification dataset. Pytorch/torchvision has provide a useful dataloader to automatically download and load the data into batches. In this homework, we need two class, digit 0 and digit 1, for binary classification. We have written the data loader for you as follow. You can find it in the attached file.

 

Resources

You can follow the setup instructions at https://pytorch.org/get-started/locally/.

A useful tutorial on learning pytorch by examples at https://pytorch.org/tutorials/beginner/pytorch_ with_examples.html.

More illustrations of different optimizers could be found here: http://ruder.io/optimizing-gradient-descent/.

Data

We use MNIST digit classification dataset. Pytorch/torchvision has provide a useful dataloader to automatically download and load the data into batches. In this homework, we need two class, digit 0 and digit 1, for binary classification. We have written the data loader for you as follow. You can find it in the attached file.

1

  • hw1-7tnbmu.zip