Mercurial > pylearn
diff learner.py @ 126:4efe6d36c061
minor edits
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Wed, 07 May 2008 16:57:48 -0400 |
parents | d0a1bd0378c6 |
children | ee5507af2c60 |
line wrap: on
line diff
--- a/learner.py Wed May 07 16:08:18 2008 -0400 +++ b/learner.py Wed May 07 16:57:48 2008 -0400 @@ -56,7 +56,7 @@ Optionally, if copy_inputs, the input fields (of the input_dataset) can be made visible in the output DataSet returned by this method. """ - raise NotImplementedError + raise AbstractFunction() def attributeNames(self): """ @@ -228,9 +228,9 @@ If a test_stats_collector is provided, then its attributes (test_stats_collector.AttributeNames()) are also copied into the output dataset attributes. """ - minibatchwise_use_function = minibatchwise_use_functions(input_dataset.fieldNames(), - output_fieldnames, - test_stats_collector) + minibatchwise_use_function = self.minibatchwise_use_functions(input_dataset.fieldNames(), + output_fieldnames, + test_stats_collector) virtual_output_dataset = ApplyFunctionDataSet(input_dataset, minibatchwise_use_function, True,DataSet.numpy_vstack,