comparison linear_regression.py @ 431:0f8c81b0776d

Adding file make_test_datasets to host simple data-generating processes to create artificial datasets meant to test various learning algorithms.
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 29 Jul 2008 10:19:25 -0400
parents fa4a5fee53ce
children 8e4d2ebd816a
comparison
equal deleted inserted replaced
430:c096e2820131 431:0f8c81b0776d
179 return CachedDataSet(ds) 179 return CachedDataSet(ds)
180 else: 180 else:
181 return ds 181 return ds
182 182
183 183
184 def linear_predictor(inputs,params,*otherargs):
185 p = LinearPredictor(params)
186 return p.compute_outputs(inputs)
187
184 #TODO : an online version 188 #TODO : an online version
185 class OnlineLinearRegression(OnlineLearningAlgorithm): 189 class OnlineLinearRegression(OnlineLearningAlgorithm):
186 """ 190 """
187 Training can proceed sequentially (with multiple calls to update with 191 Training can proceed sequentially (with multiple calls to update with
188 different disjoint subsets of the training sets). After each call to 192 different disjoint subsets of the training sets). After each call to