title: Vectorized Implementation of Softmax Regression
body: <p>I’m implementing softmax regression in Octave. Currently I’m using a non-vectorized implementation using following cost function and derivatives.</p>
  
  <p><a href="https://i.stack.imgur.com/l6AQf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l6AQf.png" alt="alt text"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/urgQh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/urgQh.png" alt="alt text"></a></p>
  
  <p>Source: <a href="http://ufldl.stanford.edu/wiki/index.php/Softmax_Regression" rel="nofollow noreferrer">Softmax Regression</a></p>
  
  <p>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 ?</p>
  
  <p>Thanks</p>
  
  <p>Upul</p>