ロジスティック回帰(logistic regression)の学習が,確率的勾配降下法(SGD: stochastic gradient descent)を使って,非常に簡単に書けることを示すPythonコード.コメントや空行を除けば十数行です. リストの内包表記,条件演算子(Cで言う三項演算子),... 続きを読む
Terms and Conditions The code below is given under the GNU Lesser General Public License. Use on your own risk ! The code was developed on cygwin using g++ version 3.4.4. Most of the code was also tested on Linux using g++ version 4.0.3 I've ... 続きを読む
Stochastic Gradient Descent (SGD) has been historically associated with back-propagation algorithms in multilayer neural networks. These nonlinear nonconvex problems can be very difficult. Therefore it is useful to see how Stochastic Gradient... 続きを読む