Coursework 2 Brief
Coursework 2 Brief
Anonymous Marking: Y
1 Overview
This coursework assesses two of the three module Learning Outcomes:
2. Demonstrate understanding of a wide range of machine learning techniques, their strengths
and their limitations.
3. Write code in a relevant programming language and employ software libraries to solve
problems in machine learning.
• Lossy compression: A compression method which can decode the compressed representation
into an almost perfect replica of the original data.
You are tasked with developing a lossy compression model for a given dataset of images (detailed in
section 3) using an Autoencoder which is a special type of unsupervised neural network architecture.
To do this, you will need to:
1. Research Autoencoders, how they function and how they can be constructed.
2. Develop an Autoencoding neural network to reproduce the images from the dataset to
minimize the information lost through the compression whilst considering the compression
ratio.
3. Document your experiment in a short report format.
1
Figure 1. Illustration of lossless and lossy compression.
2
2 Deliverable
There are two deliverables to this coursework:
3
2.1 Mark Scheme
Your report and code will be assessed using the contributions below:
Report Introduction 0%
Jupyter Notebook
Presentation & Reproducibility 20%
(20%)
4
3 The Images
The dataset provided is in the form of three Numpy files:
• subset_1.npy, subset_2.npy, subset_3.npy – Each file contains at most 400 flattened images
each with a resolution of 150 x 225 (x 3 for the RGB channels) pixels, examples are given in
Figure 2. Each image is represented as a row consisting of 101,250 columns each representing
a pixel component in the original image.
To load the data you should use the Numpy load function, for example:
import numpy as np
inputs = np.load(“subset_1.npy”)
To display an image at a given row (i) you can use the following code:
5
4 Feedback
Formative feedback will be available in the labs.
You will receive summative feedback on your work within 3 semester weeks of the submission
deadline. The feedback will discuss your performance based on the criteria for marking, including what
you did well and how specific components/sections could have been improved.
5 Academic Integrity
Your work will be checked to ensure that you have not plagiarised. For more information about the
plagiarism policy at the University see: https://library.bath.ac.uk/referencing/plagiarism
Remember that published work that you refer to in your report should be clearly referenced in your
text and listed in a bibliography section given at the bottom of your report. For more information see,
https://library.bath.ac.uk/referencing/new-to-referencing
This coursework is classified as Type A with regards to the use of Generative AI, hence no generative
AI should be used.
6 FAQ