Here, we will see how to implement sparse autoencoder for digit recognition. Such autoencoder can be employed to extract useful features to represent the raw data.

The detailed derivations of algorithm can be found from this script.

Main workflow

  • Preparing training/validation/testing datasets.
  • Set the hyperparameters and numerical parameters.
  • Check if the gradients of the loss function are correct.
  • Training model.
  • Observe the behavior of weights learned.

Ipython notebook

Notebook

Sparse autoencoder

In case you are interested in all codes related in this demonstration, please check the repository.

Comments

comments powered by Disqus

Published

Category

Machine learning

Tags

Contact