0
1

Hi All,

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

asked Jan 24 '12 at 23:22

Upul%20Bandara's gravatar image

Upul Bandara
1047912


One Answer:

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

answered Jan 25 '12 at 02:24

Yaroslav%20Bulatov's gravatar image

Yaroslav Bulatov
2333214365

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.