Exercise:Softmax Regression
From Ufldl
(→Softmax regression) |
(→Step 0: Initialize constants and parameters) |
||
Line 16: | Line 16: | ||
=== Step 0: Initialize constants and parameters === | === Step 0: Initialize constants and parameters === | ||
- | Two constants, <tt>inputSize</tt> and <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. |
=== Step 1: Load data === | === Step 1: Load data === |