# HG changeset patch # User Frederic Bastien # Date 1212513808 14400 # Node ID 394e07e2b0fdc62993818a51111a5f865c3b4974 # Parent 856d14dc44687bbf7c7d1fa91083d316a7b1a35c code clean up diff -r 856d14dc4468 -r 394e07e2b0fd dataset.py --- a/dataset.py Tue Jun 03 13:22:45 2008 -0400 +++ b/dataset.py Tue Jun 03 13:23:28 2008 -0400 @@ -1186,34 +1186,6 @@ return CacheIteratorIter(self) -# class CachedDataSetIterator(object): -# def __init__(self,dataset,fieldnames):#,minibatch_size,n_batches,offset): -# # if fieldnames is None: fieldnames = dataset.fieldNames() -# # store the resulting minibatch in a lookup-list of values -# self.minibatch = LookupList(fieldnames,[0]*len(fieldnames)) -# self.dataset=dataset -# # self.minibatch_size=minibatch_size -# # assert offset>=0 and offset=self.l: -# raise StopIteration -# sub_data = self.dataset.data[self.current] -# self.minibatch._values = [sub_data[c] for c in self.columns] - -# self.current+=self.minibatch_size -# return self.minibatch - -# return CachedDataSetIterator(self,self.fieldNames())#,1,0,0) - class ApplyFunctionDataSet(DataSet): """ A L{DataSet} that contains as fields the results of applying a