Exercise:Softmax Regression
From Ufldl
(→Step 4: Learning parameters) |
(→Step 4: Learning parameters) |
||
Line 95: | Line 95: | ||
=== Step 4: Learning parameters === | === Step 4: Learning parameters === | ||
- | Now that you've verified that your gradients are correct, you can train your softmax model using the function <tt>softmaxTrain</tt> in softmaxTrain.m. <tt>softmaxTrain</tt> which uses the L-BFGS algorithm, in the function <tt>minFunc</tt>. Training the model on the entire MNIST training set of 60000 28x28 images should be rather quick, and take less than 3 minutes for 100 iterations. | + | Now that you've verified that your gradients are correct, you can train your softmax model using the function <tt>softmaxTrain</tt> in <tt>softmaxTrain.m</tt>. <tt>softmaxTrain</tt> which uses the L-BFGS algorithm, in the function <tt>minFunc</tt>. Training the model on the entire MNIST training set of 60000 28x28 images should be rather quick, and take less than 3 minutes for 100 iterations. |
=== Step 5: Cross-validation === | === Step 5: Cross-validation === |