Exercise:Softmax Regression

From Ufldl

Jump to: navigation, search
(Softmax regression)
(Step 5: Testing)
Line 101: Line 101:
=== Step 5: Testing ===
=== Step 5: Testing ===
-
Now that you've trained your model, you will cross-validate it against the MNIST test set, comprising 10000 28x28 images. Code has been provided to compute the accuracy (the proportion of correctly classified images) of your model. Our implementation achieved an accuracy of 92%. If your model's accuracy is significantly less (less than 91%), check your code, ensure that you are using the trained weights, and that you are training your model on the full 60000 training images. Conversely, if your accuracy is too high (99-100%), ensure that you have not accidentally trained your model on the test set as well.
+
Now that you've trained your model, you will test it against the MNIST test set, comprising 10000 28x28 images. However, to do so, you will first need to complete the function <tt>softmaxPredict</tt> in <tt>softmaxPredict.m</tt>, a function which generates predictions for input data under a trained softmax model.  
-
[[Category:Exercises]] [[Category:TODO]]
+
Once that is done, you will be able to compute the accuracy (the proportion of correctly classified images) of your model using the code provided. Our implementation achieved an accuracy of 92%. If your model's accuracy is significantly less (less than 91%), check your code, ensure that you are using the trained weights, and that you are training your model on the full 60000 training images. Conversely, if your accuracy is too high (99-100%), ensure that you have not accidentally trained your model on the test set as well.
 +
 
 +
[[Category:Exercises]]

Revision as of 07:30, 1 May 2011

Personal tools