0% found this document useful (0 votes)
54 views

COMP-377 Lab Assignment 4 - F21

This document provides instructions for a lab assignment to build CNN models for image classification using TensorFlow. It describes two exercises - the first involves implementing a CNN for digit classification on MNIST data, and the second involves building a CNN for photo classification on CIFAR-10 data.

Uploaded by

Rich 1st
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

COMP-377 Lab Assignment 4 - F21

This document provides instructions for a lab assignment to build CNN models for image classification using TensorFlow. It describes two exercises - the first involves implementing a CNN for digit classification on MNIST data, and the second involves building a CNN for photo classification on CIFAR-10 data.

Uploaded by

Rich 1st
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

AI Software Developers COMP-377

Lab Assignment #4 – Use CNNs in image classification problems

Due Date: Sunday 11:59pm, Week 11

Purpose: The purpose of this Lab assignment is to:


 Build CNN models for solving image recognition problems
 Design and implement Python applications that incorporate CNN solutions
 Use TensorFlow for implementing CNN models and evaluate their
accuracy

References: Read reference books, Stanford tutorial on logistic regression


(http://ufldl.stanford.edu/tutorial/supervised/ConvolutionalNeuralNetwork/), and
the lecture slides. This material provides the necessary information that you need
to complete the exercises.

Be sure to read the following general instructions carefully:


- This assignment must be completed individually by all the students.
- You will have to demonstrate your solution in a scheduled lab session and upload the
solution on eCentennial through the assignment link.

Exercise 1: Convolutional Neural Networks

In this exercise you will implement a CNN model for digit classification using TensorFlow and
MNIST dataset. Here is the architecture of the network:
- Use a convolution and subsampling layer followed by a densely connected output
layer which will feed into the softmax regression and cross entropy objective.
- Use mean pooling for the subsampling layer.
- Use the back-propagation algorithm to calculate the gradient with respect to the
parameters of the model.
- Train the parameters of the network with stochastic gradient descent and momentum.

Test the model performance and compare the accuracy with that obtained by using SVM model.

(5 marks)

Exercise 2: Convolutional Neural Networks

In this exercise you will build a CNN model for photo classification using TensorFlow. Use
CIFAR-10 dataset developed by the Canadian Institute for Advanced Research
(https://www.cs.toronto.edu/~kriz/cifar.html). Evaluate the accuracy of the model.

(5 marks)

Evaluation:
Functionality: 85%
Correct implementation of requirements

Lab #4 Page 1 of 2
AI Software Developers COMP-377

Code explanation when asked


Algorithm design: correct design of classes and 15%
methods similarly to class examples and using
the naming guidelines.

Total 100%

You must name your Jupyter notebook file according to the following rule:
YourFullname_COMP377Labnumber_Exercisenumber.

Example: JohnSmith_COMP377La4_Ex1

Submission rules:

Submit your solution as a zip file that is named according to the following rule:
YourFullname_COMP377Labnumber.zip

Example: JohnSmith_COMP377Lab4.zip

Use 7-zip to compress files (https://www.7-zip.org/download.html).

Lab #4 Page 2 of 2

You might also like