Exercise:Learning color features with Sparse Autoencoders
From Ufldl
(→Step 2: Learn features on small patches) |
(→Step 1: Modify your sparse autoencoder to use a linear decoder) |
||
Line 30: | Line 30: | ||
=== Step 1: Modify your sparse autoencoder to use a linear decoder === | === Step 1: Modify your sparse autoencoder to use a linear decoder === | ||
- | Copy <tt> | + | Copy <tt>sparseAutoencoderCost.m</tt> to the directory for this exercise and rename it to <tt>sparseAutoencoderLinear.m</tt>. Rename the function <tt>sparseAutoencoderCost</tt> in the file to <tt>sparseAutoencoderLinearCost</tt>, and modify it to use a [[Linear Decoders | linear decoder]]. In particular, you should change the cost and gradients returned to reflect the change from a sigmoid to a linear decoder. After making this change, check your gradients to ensure that they are correct. |
=== Step 2: Learn features on small patches === | === Step 2: Learn features on small patches === |