diff randInitializeWeights.m @ 5:08072e7b3e9f

Fix randInitializeWeights
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 11 Nov 2011 17:50:52 -0500
parents 8e8089d5a55b
children
line wrap: on
line diff
--- a/randInitializeWeights.m
+++ b/randInitializeWeights.m
@@ -10,7 +10,7 @@
   ##
 
   ## Randomly initialize the weights to small values
-  epsilon init = 0.12;
-  W = rand(L out, 1 + L in) * 2 * epsilon init − epsilon init;
+  epsilon_init = 0.12;
+  W = rand(L_out, 1 + L_in)*2*epsilon_init - epsilon_init;
 
 endfunction