changeset 1499:f82b80c841b2

Remove deprecation warning.
author Frederic Bastien <nouiz@nouiz.org>
date Fri, 09 Sep 2011 10:49:54 -0400
parents 0f326860210e
children 517f4c02dde9
files pylearn/algorithms/mcRBM.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/mcRBM.py	Thu Sep 01 13:35:15 2011 -0400
+++ b/pylearn/algorithms/mcRBM.py	Fri Sep 09 10:49:54 2011 -0400
@@ -375,7 +375,7 @@
         
         """
         try:
-            return self.W.value.shape[0]
+            return self.W.get_value(borrow=True, return_internal_type=True).shape[0]
         except AttributeError:
             return self.W.shape[0]
 
@@ -387,7 +387,7 @@
         
         """
         try:
-            return self.U.value.shape[1]
+            return self.U.get_value(borrow=True, return_internal_type=True).shape[1]
         except AttributeError:
             return self.U.shape[1]
 
@@ -399,7 +399,7 @@
         
         """
         try:
-            return self.W.value.shape[1]
+            return self.W.get_value(borrow=True, return_internal_type=True).shape[1]
         except AttributeError:
             return self.W.shape[1]
 
@@ -580,7 +580,7 @@
         
         """
         try:
-            return self.P.value.shape[1]
+            return self.P.get_value(borrow=True, return_internal_type=True).shape[1]
         except AttributeError:
             return self.P.shape[1]
 
@@ -669,7 +669,7 @@
         rval = cls.alloc(rbm, visible_batch, batchsize, initial_lr_per_example, rng, l1_penalty,
                 l1_penalty_start, learn_rate_multipliers, lr_anneal_start, persistent_chains)
 
-        rval.p_mask = sharedX((rbm.P.value!=0).astype('float32'), 'p_mask')
+        rval.p_mask = sharedX((rbm.P.get_value(borrow=True)!=0).astype('float32'), 'p_mask')
 
         rval.p_lr = p_lr
         rval.p_training_start=p_training_start