Mercurial > pylearn
diff dataset.py @ 251:7e6edee187e3
optimization of CachedDataSet__getitem__
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Tue, 03 Jun 2008 12:25:53 -0400 |
parents | c8f19a9eb10f |
children | 856d14dc4468 |
line wrap: on
line diff
--- a/dataset.py Tue Jun 03 12:18:22 2008 -0400 +++ b/dataset.py Tue Jun 03 12:25:53 2008 -0400 @@ -1161,7 +1161,7 @@ if type(i)==int and len(self.cached_examples)>i: return self.cached_examples[i] else: - return DataSet.__getitem__(self,i) + return self.source_dataset[i] class ApplyFunctionDataSet(DataSet): """