Exercise:Softmax Regression

From Ufldl

Jump to: navigation, search
(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>outputSize</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.
=== Step 1: Load data ===
=== Step 1: Load data ===

Revision as of 02:05, 7 May 2011

Personal tools