[SOLVED] Machine Learning Homework 1

20.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

Write a Python script that calculates approximations of an image using Singular Value Decomposition. The input image is available at https://drive.google.com/file/d/13N5bDwcZc40myJc-usx7H1c9CdNyuFcl/view?usp=sharing

1) The image should be read in greyscale (see e.g.
https://matplotlib.org/3.3.1/api/_as_gen/matplotlib.pyplot.imread.html)
2) For singular value decomposition, see https://numpy.org/doc/stable/reference/generated/numpy.linalg.svd.html
Submit the following files:
1) Source code written in Python (.py or .ipynb)
2) Doc or pdf file with image approximations constructed using k = 1,5,10,20,40 singular values

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.