Exercise:Softmax Regression
From Ufldl
(→Softmax regression) |
(→Softmax regression) |
||
Line 3: | Line 3: | ||
In this problem set, you will use [[softmax regression]] on pixels to classify MNIST images. However, since you will also be using softmax regression for the [[Self-Taught Learning]] exercise later, your implementation should be a more general implementation that works on any arbitrary input. | In this problem set, you will use [[softmax regression]] on pixels to classify MNIST images. However, since you will also be using softmax regression for the [[Self-Taught Learning]] exercise later, your implementation should be a more general implementation that works on any arbitrary input. | ||
- | In the file <tt>softmax_exercise.zip</tt>, we have provided some starter code. You should write your code in the places indicated by "YOUR CODE HERE" in the files. The only file you need to modify for this exercise is is softmaxCost.m. | + | In the file <tt>softmax_exercise.zip</tt>, we have provided some starter code. You should write your code in the places indicated by "YOUR CODE HERE" in the files. The only file you need to modify for this exercise is is <tt>softmaxCost.m</tt>. |
=== Step 0: Initialise constants === | === Step 0: Initialise constants === |