Mercurial > pylearn
diff linear_regression.py @ 427:fa4a5fee53ce
Showing the path to an online version of linear regressor.
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Tue, 22 Jul 2008 16:44:42 -0400 |
parents | e01f17be270a |
children | 0f8c81b0776d |
line wrap: on
line diff
--- a/linear_regression.py Tue Jul 22 15:20:25 2008 -0400 +++ b/linear_regression.py Tue Jul 22 16:44:42 2008 -0400 @@ -35,14 +35,6 @@ The predictor parameters are obtained analytically from the training set. - *** NOT IMPLEMENTED YET *** - Training can proceed sequentially (with multiple calls to update with - different disjoint subsets of the training sets). After each call to - update the predictor is ready to be used (and optimized for the union - of all the training sets passed to update since construction or since - the last call to forget). - *************************** - For each (input[t],output[t]) pair in a minibatch,:: output_t = b + W * input_t @@ -189,3 +181,17 @@ return ds +#TODO : an online version +class OnlineLinearRegression(OnlineLearningAlgorithm): + """ + Training can proceed sequentially (with multiple calls to update with + different disjoint subsets of the training sets). After each call to + update the predictor is ready to be used (and optimized for the union + of all the training sets passed to update since construction or since + the last call to forget). + """ + pass + + + +