Skip to content

fcchou/sparse_autoencoder

Repository files navigation

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.

About

Neural-network-based sparse autoencoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages