Exercise:Convolution and Pooling
From Ufldl
(→Step 3a: Convolution) |
(→Step 1: Modify sparseAutoencoderCost.m to use a linear decoder) |
||
Line 30: | Line 30: | ||
=== Step 1: Modify sparseAutoencoderCost.m to use a linear decoder === | === Step 1: Modify sparseAutoencoderCost.m to use a linear decoder === | ||
- | + | Copy <tt>sparseAutoencoder.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 gradient to ensure that they are correct. | |
=== Step 2: Learn features on small patches === | === Step 2: Learn features on small patches === |