[Solved] CT5133/CT5145 Assignment 1

$25

File Name: CT5133/CT5145_Assignment_1.zip
File Size: 244.92 KB

SKU: [Solved] CT5133/CT5145-Assignment 1 Category: Tag:
5/5 - (1 vote)

DeepLearning-Assignment1-2023(1)

 

Module Assessment

  • Final exam (60%)
    • Sample questions will be provided closer to the exam time
  • Continuous assessment (40%)
    • Assignment 1: 20% (due at end of Week 6)
    • Assignment 2: 20% (due at end of Week 11)
    • Details and specific deadlines will be posted on Blackboard
    • The two assignments will be substantial multi-week programming assignments.

Deep Learning Assignment 1

  • In this assignment, you will implement a deep neural network from scratch
    • Multi-part assignment, drawing on material covered each week
    • You are expected to start work on it immediately; it is NOT recommended to wait until near the deadline
  • You must use a Jupyter Notebook:
    • Python recommended but R is OK too
    • You can use low-level functionality of numpy and scikit-learn, but not their implementations of anything core (e.g. optimisers, grad descent etc.)

1-Person or 2-Person Assignment: You Choose

  • You can do the assignment on your own or you can join with 1 other person (no more)
    • Final part will involve separate contributions by both people
  • Policy on two-person submissions:
    • You are encouraged to work in pairs for Parts 1-4, but you cannot collaborate with other people in the class beyond that.
    • Part 5 must be done twice for a 2-person assignment.
    • Your documentation and code must be clear about what contributions each person made; it is not sufficient to say something likewe both worked on everything together.
    • Across all parts of the assignment, I may award different marks to each person doing a 2-person assignment if I feel that their contributions are not equal.

Part 1: Implement Logistic Regression

  • Logistic Regression
    • Use Jupyter Notebook (Python or R) to implement a neural network approach to logistic regression (no hidden layers, one output node)
    • Work in pairs: note contributions of both people (larger groups not allowed)
    • Your code must handle different numbers of inputs and different numbers of training cases, but you dont have to support more than one output node
  • Recommended to follow my notes closely
    • Post questions on discussion forum if there are gaps/inconsistencies, or if you are unclear about anything
    • No plagiarism! ANY plagiarism will result in 0 for full assignment
    • Reference ALL sources you used
    • Do not submit code taken from the web

Part 2: Easy Tasks

  • I will supply two fairly small datasets:
    • One will be linearly separable (almost or fully), the other will not
    • I will provide sample Python code to load and plot the datasets; you are allowed to use this code in your own assignment
  • Divide each dataset randomly into:
    • Training set (70%): use for main training
    • Validation set (15%): use for tuning,

e.g. selecting learning rates

Test set (15%): held out set for final performance evaluation

  • Train a logistic regressor using your code from Part 1, and see how it performs on both datasets

Part 3: Implement and Test a Shallow Neural Network

  • Implement a shallow neural network
    • Start with your logistic regression code Again, follow my notes as closely as possible
    • Your code must support different numbers of input nodes and different numbers of nodes in the hidden layer; you dont have to

support more than one output node

  • No need to support more than 1 hidden layer
  • Test your implementation on the two small datasets:
    • Is it able to handle the linearly separable data? (I hope so)
    • Does it perform better than the logistic regression implementation on the dataset that is not linearly separable?

Part 4: Challenging Task

  • Image recognition is one task now tackled with ML, that was considered very hard not long ago

Use just 1 colour or convert to greyscale;

Convert to vector of 1024 floats

  • 50k training images, 10k testing images: you can select random subsets (e.g. 1 batch)
  • 1 hidden layer (larger than first case), 1 output
  • You must try to distinguish between 2 classes only:
    • Send me an email message saying the name of the 2 people in your group and Ill give you a pair of images.
  • PhD students: If you want to use a different dataset related to your research, contact me in advance for agreement

Part 5: Deep Learning Enhancements

  • This part must be done individually:
    • Do not do it with the other member of your group
    • Include 2 separate sections in your report about what each of you did in Part 5
  • Each group member: pick one enhancement that is characteristic of deep learning
    • The two group members have to pick different enhancements from each other
    • implement your enhancement
    • Test how well it works relative to the shallow NN on the image dataset

Deep Learning

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CT5133/CT5145 Assignment 1
$25