Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1002 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 1002 Bytes

Sparse Autoendcoder Excercise

This is an exercise on implementing a sparse autoencoder. The excerise comes from Prof. Andrew Ng's UFLDL tutorial

The description and tutorial of the excerise can be also found in the PDF files in this folder.

Note that I am implementing it in Python instead of MATLAB. The basic algorithm is the same.

The code requires numpy and scipy. matplotlib is needed for visualization.

Example

alt text

alt text

You may also play with the parameters in the code to see the difference on the results.

The main codes are in sparse_autoencoder.py. Here the SparseAutoencoder class is designed to be quite general, so you may use it for other types of data.