Exercise:Softmax Regression
From Ufldl
(→Step 5: Testing) |
(→Step 0: Initialize constants and parameters) |
||
Line 22: | Line 22: | ||
=== Step 0: Initialize constants and parameters === | === Step 0: Initialize constants and parameters === | ||
+ | |||
+ | We've provided the code for this step in <tt>softmaxExercise.m</tt>. | ||
Two constants, <tt>inputSize</tt> and <tt>numClasses</tt>, corresponding to the size of each input vector and the number of class labels have been defined in the starter code. This will allow you to reuse your code on a different data set in a later exercise. We also initialize <tt>lambda</tt>, the weight decay parameter here. | Two constants, <tt>inputSize</tt> and <tt>numClasses</tt>, corresponding to the size of each input vector and the number of class labels have been defined in the starter code. This will allow you to reuse your code on a different data set in a later exercise. We also initialize <tt>lambda</tt>, the weight decay parameter here. |