comparison learner.py @ 109:d97f6fe6bdf9

Merged with this morning unsaved edits
author bengioy@bengiomac.local
date Tue, 06 May 2008 20:01:34 -0400
parents c4916445e025
children 8fa1ef2411a0
comparison
equal deleted inserted replaced
108:695b729027d4 109:d97f6fe6bdf9
151 The learner tries to compute in the output dataset the output fields specified 151 The learner tries to compute in the output dataset the output fields specified
152 152
153 @todo check if some of the learner attributes are actually SPECIFIED 153 @todo check if some of the learner attributes are actually SPECIFIED
154 as attributes of the input_dataset, and if so use their values instead 154 as attributes of the input_dataset, and if so use their values instead
155 of the ones in the learner. 155 of the ones in the learner.
156
157 The learner tries to compute in the output dataset the output fields specified.
158 If None is specified then self.defaultOutputFields(input_dataset.fieldNames())
159 is called to determine the output fields.
160
161 Attributes of the learner can also optionally be copied into the output dataset.
162 If output_attributes is None then all of the attributes in self.AttributeNames()
163 are copied in the output dataset, but if it is [] (the default), then none are copied.
164 If a test_stats_collector is provided, then its attributes (test_stats_collector.AttributeNames())
165 are also copied into the output dataset attributes.
156 """ 166 """
157 minibatchwise_use_function = _minibatchwise_use_functions(input_dataset.fieldNames(), 167 minibatchwise_use_function = _minibatchwise_use_functions(input_dataset.fieldNames(),
158 output_fieldnames, 168 output_fieldnames,
159 test_stats_collector) 169 test_stats_collector)
160 virtual_output_dataset = ApplyFunctionDataSet(input_dataset, 170 virtual_output_dataset = ApplyFunctionDataSet(input_dataset,