Vectorized Implementation of Softmax Regression
Asked Answered
M

1

1

I’m implementing softmax regression in Octave. Currently I’m using a non-vectorized implementation using following cost function and derivatives.

alt text

alt text

Source: Softmax Regression

Now I want to implement vectorized version of it in Octave. It seems like bit hard for me to write vectorized versions for these equations. Can somebody help me to implement this ?

Thanks

Upul

Mosqueda answered 25/1, 2012 at 5:36 Comment(0)
M
3

This is very similar to an exercise in Andrew Ng's deep learning class, they give some hints http://ufldl.stanford.edu/wiki/index.php/Exercise:Vectorization

Microdot answered 25/1, 2012 at 7:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.