changeset 656:40cae12a9bb8

Get rid of old dbdict
author Pascal Lamblin <lamblinp@iro.umontreal.ca>
date Fri, 20 Feb 2009 15:08:29 -0500
parents d03b5d8e4bf6
children 4837aee22352
files pylearn/algorithms/rbm.py pylearn/external/wrap_libsvm.py
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/rbm.py	Wed Feb 04 20:02:05 2009 -0500
+++ b/pylearn/algorithms/rbm.py	Fri Feb 20 15:08:29 2009 -0500
@@ -11,7 +11,6 @@
 from ..datasets import make_dataset
 from .minimizer import make_minimizer
 from .stopper import make_stopper
-from ..dbdict.experiment import subdict
 
 class RBM(T.RModule):
 
@@ -76,7 +75,7 @@
 
 
 def train_rbm(state, channel=lambda *args, **kwargs:None):
-    dataset = make_dataset(**subdict_copy(state, prefix='dataset_'))
+    dataset = make_dataset(**state.dataset)
     train = dataset.train
 
     rbm_module = RBM(
--- a/pylearn/external/wrap_libsvm.py	Wed Feb 04 20:02:05 2009 -0500
+++ b/pylearn/external/wrap_libsvm.py	Fri Feb 20 15:08:29 2009 -0500
@@ -2,7 +2,6 @@
 """
 import numpy
 from ..datasets import make_dataset
-from ..dbdict.experiment import subdict_copy
 
 # libsvm currently has no python installation instructions/convention.
 #
@@ -55,8 +54,7 @@
     This is the kind of function that dbdict-run can use.
 
     """
-    dataset = make_dataset(**subdict_copy(state, 'dataset_'))
-            
+    dataset = make_dataset(**state.dataset)
 
 
     #libsvm needs stuff in int32 on a 32bit machine