Exercise:Self-Taught Learning
From Ufldl
(→Step 2: Train the sparse autoencoder) |
(→Step 2: Train the sparse autoencoder) |
||
Line 35: | Line 35: | ||
===Step 2: Train the sparse autoencoder=== | ===Step 2: Train the sparse autoencoder=== | ||
- | Next, use the unlabeled data to train a sparse autoencoder, using the same <tt>sparseAutoencoderCost.m</tt> function as you had written in the previous exercise. (From the earlier exercise, you should have a working and vectorized implementation of the sparse autoencoder.) For us, the training step took less than 25 minutes on a fast desktop. When training is complete, you should get a visualization of pen strokes like the image shown below: | + | Next, use the unlabeled data (digits 5-9) to train a sparse autoencoder, using the same <tt>sparseAutoencoderCost.m</tt> function as you had written in the previous exercise. (From the earlier exercise, you should have a working and vectorized implementation of the sparse autoencoder.) For us, the training step took less than 25 minutes on a fast desktop. When training is complete, you should get a visualization of pen strokes like the image shown below: |
[[File:selfTaughtFeatures.png]] | [[File:selfTaughtFeatures.png]] |