Mercurial > pylearn
diff learner.py @ 13:633453635d51
Starting to work on gradient_based_learner.py
author | bengioy@bengiomac.local |
---|---|
date | Wed, 26 Mar 2008 21:38:08 -0400 |
parents | 80bf5492e571 |
children | 5ede27026e05 |
line wrap: on
line diff
--- a/learner.py Wed Mar 26 18:21:57 2008 -0400 +++ b/learner.py Wed Mar 26 21:38:08 2008 -0400 @@ -1,6 +1,5 @@ from dataset import * -from statscollector import * class Learner(object): """Base class for learning algorithms, provides an interface @@ -32,7 +31,7 @@ The result is a function that can be applied on data, with the same semantics of the Learner.use method. """ - return self.use + return self.use # default behavior is 'non-adaptive', i.e. update does not do anything def __call__(self,training_set):