CS260: Machine Learning Algorithms HomeWork 3 SOLVED

30.00 $

Category:

Description

Rate this product
 

 

Instructions:

In this homework you will practice building a multi-class image classification pipeline to classify daily life images (CIFAR10), based on the modern neural networks. Please keep the batch size untouched. The goals of this homework are as follows:

  • understand how to use Pytorch to build multi-class classifiers.
  • understand the mechanism of convolution in image classification.
  • learn the power of non-linearity in modern neural networks.
  • implement and apply a fully-connected multi-class image classifier.
  • implement and apply a Convolutional Neural Networks (CNN) classifier.

Problem Description.

In this homework, you are asked to implement fully-connected (MLP) and Convolutional Neural Networks (CNN) image classifier on CIFAR10 dataset. In this task, you only need to perform multi-class classification. Details of these models could be found in lecture 11 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. 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 building CNN at https://pytorch.org/tutorials/beginner/blitz/cifar10_ tutorial.html.

Convolutional functions could be found here: https://pytorch.org/docs/stable/nn.html#convolution-functions.

Data

We use CIFAR10 classification dataset. Pytorch/torchvision has provide a useful dataloader to automatically download and load the data into batches. We have written the data loader for you as follow. You can find it in the attached file.

 

  • HW3-knh91o.zip