diff dataset.py @ 198:136f78559138

bugfix
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 13 May 2008 16:02:32 -0400
parents 96d891448107
children 1400fa04dfab
line wrap: on
line diff
--- a/dataset.py	Tue May 13 15:29:04 2008 -0400
+++ b/dataset.py	Tue May 13 16:02:32 2008 -0400
@@ -1179,7 +1179,7 @@
           def next(self):
               function_inputs = self.input_iterator.next()
               if self.output_dataset.minibatch_mode:
-                  function_outputs = [output[0] for output in self.output_dataset.function(*function_inputs)]
+                  function_outputs = self.output_dataset.function(*function_inputs)
               else:
                   function_outputs = self.output_dataset.function(function_inputs)
               return Example(self.output_dataset.output_names,function_outputs)