Vectorized Implementation of Softmax Regression

泪湿孤枕 提交于 2019-12-11 06:46:32

问题


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

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


回答1:


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



来源:https://stackoverflow.com/questions/8998321/vectorized-implementation-of-softmax-regression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!