Open elezar opened 8 years ago
Thats true. Cant you just use uniform(-m^(-0.5), m^(-0.5)) ?
I'm new to lua, so maybe the uniform function will give the right result. I will check.
On Tue, 17 Nov 2015 19:03 Søren Kaae Sønderby notifications@github.com wrote:
Thats true. Cant you jus use uniform(-m^(-0.5), m^(-0.5))
— Reply to this email directly or view it on GitHub https://github.com/skaae/rbm_toolbox_lua/issues/8#issuecomment-157454655 .
In the paper "Learning Algorithms for the Classification Restricted Boltzmann Machine", a uniform distribution in the interval
[-m**-0.5, m**-0.5]
is used for the initialisation of the weight matrices (rbm.W
andrbm.U
).However, in the
initcrbm
the following code is used:which initialises the weights using the interval
[0, m**-0.5]
.Should the calculation of the weights not be?