Exercise:Self-Taught Learning

From Ufldl

Jump to: navigation, search
(Step 3: Extracting features)
 
Line 51: Line 51:
===Step 4: Training and testing the logistic regression model===
===Step 4: Training and testing the logistic regression model===
-
In this step, you should use your code from the softmax exercise (<tt>softmaxTrain.m</tt>) to train the softmax classifier using the training features (<tt>trainFeatures</tt>) and labels (<tt>trainLabels</tt>).
+
Use your code from the softmax exercise (<tt>softmaxTrain.m</tt>) to train a softmax classifier using the training set features (<tt>trainFeatures</tt>) and labels (<tt>trainLabels</tt>).
===Step 5: Classifying on the test set===
===Step 5: Classifying on the test set===
-
Finally, complete the code to make predictions on the test set (<tt>testFeatures</tt>) and see how your learned features perform! If you've done all the steps correctly, you should get an accuracy of about '''98%''' percent.
+
Finally, complete the code to make predictions on the test set (<tt>testFeatures</tt>) and see how your learned features perform! If you've done all the steps correctly, you should get an accuracy of about '''98%''' percent.
 +
 
 +
As a comparison, when ''raw pixels'' are used (instead of the learned features), we obtained a test accuracy of only around 96% (for the same train and test sets).
[[Category:Exercises]]
[[Category:Exercises]]
 +
 +
 +
{{STL}}

Latest revision as of 11:02, 26 May 2011

Personal tools