changeset 251:7e6edee187e3

optimization of CachedDataSet__getitem__
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 03 Jun 2008 12:25:53 -0400
parents 474be3d12c23
children 856d14dc4468
files dataset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):
   """