Mercurial > pylearn
diff denoising_aa.py @ 299:eded3cb54930
small bug fixed
author | Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca> |
---|---|
date | Fri, 06 Jun 2008 17:58:45 -0400 |
parents | 9e96fe8b955c |
children |
line wrap: on
line diff
--- a/denoising_aa.py Fri Jun 06 17:55:14 2008 -0400 +++ b/denoising_aa.py Fri Jun 06 17:58:45 2008 -0400 @@ -106,11 +106,14 @@ self.denoising_autoencoder_formula = corruption_formula + autoencoder.rename(x='corrupted_x') def __call__(self, training_set=None): - """ Allocate and optionnaly train a model""" + """ Allocate and optionnaly train a model + + @TODO enables passing in training and valid sets, instead of cutting one set in 80/20 + """ model = DenoisingAutoEncoderModel(self) if training_set: print 'DenoisingAutoEncoder(): what do I do if training_set????' - # copied from mlp_factory_approach: + # copied from old mlp_factory_approach: if len(trainset) == sys.maxint: raise NotImplementedError('Learning from infinite streams is not supported') nval = int(self.validation_portion * len(trainset))