Sparse autoencoder network following Andrew Ng lecture notes in CS294A.