comparison dataset.py @ 201:c9c966cab763

bugfix
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Thu, 15 May 2008 13:09:26 -0400
parents ac61f1178f88
children 80731832c62b
comparison
equal deleted inserted replaced
200:ac61f1178f88 201:c9c966cab763
1155 all_output_names = self.output_dataset.output_names 1155 all_output_names = self.output_dataset.output_names
1156 if self.output_dataset.minibatch_mode: 1156 if self.output_dataset.minibatch_mode:
1157 function_outputs = self.output_dataset.function(*function_inputs) 1157 function_outputs = self.output_dataset.function(*function_inputs)
1158 else: 1158 else:
1159 input_examples = zip(*function_inputs) 1159 input_examples = zip(*function_inputs)
1160 output_examples = [self.output_dataset.function(input_example) 1160 output_examples = [self.output_dataset.function(*input_example)
1161 for input_example in input_examples] 1161 for input_example in input_examples]
1162 function_outputs = [self.output_dataset.valuesVStack(name,values) 1162 function_outputs = [self.output_dataset.valuesVStack(name,values)
1163 for name,values in zip(all_output_names, 1163 for name,values in zip(all_output_names,
1164 zip(*output_examples))] 1164 zip(*output_examples))]
1165 all_outputs = Example(all_output_names,function_outputs) 1165 all_outputs = Example(all_output_names,function_outputs)