# HG changeset patch # User James Bergstra # Date 1257893350 18000 # Node ID c3e7ae2bdb4bc99d390149187fde98e0e67fed3d # Parent aaaed35c995e4b43ef1bf0dfc5afc5a7bddcf9a7 improved the initialization range for weights in convolutional version of Rust2005 diff -r aaaed35c995e -r c3e7ae2bdb4b pylearn/shared/layers/rust2005.py --- a/pylearn/shared/layers/rust2005.py Tue Nov 10 17:48:44 2009 -0500 +++ b/pylearn/shared/layers/rust2005.py Tue Nov 10 17:49:10 2009 -0500 @@ -241,8 +241,8 @@ b_shp = (n_filters,) if w_range is None: - w_low = -2.0/numpy.sqrt(image_shape[0] * image_shape[1]) - w_high = 2.0/numpy.sqrt(image_shape[0] * image_shape[1]) + w_low = -2.0/numpy.sqrt(image_shape[0] * image_shape[1] * n_channels) + w_high = 2.0/numpy.sqrt(image_shape[0] * image_shape[1] * n_channels) else: w_low, w_high = w_range