Mercurial > pylearn
comparison dataset.py @ 66:dde1fb1b63ba
fixed test and removed print
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Fri, 02 May 2008 11:24:17 -0400 |
parents | d48eba49a2f4 |
children | 2b6656b2ef52 40476a7746e8 |
comparison
equal
deleted
inserted
replaced
65:d48eba49a2f4 | 66:dde1fb1b63ba |
---|---|
551 fieldnames=dataset.fieldNames() | 551 fieldnames=dataset.fieldNames() |
552 elif not fieldnames==dataset.fieldNames(): | 552 elif not fieldnames==dataset.fieldNames(): |
553 dataset = FieldsSubsetDataSet(dataset,fieldnames) | 553 dataset = FieldsSubsetDataSet(dataset,fieldnames) |
554 assert dataset.hasFields(*fieldnames) | 554 assert dataset.hasFields(*fieldnames) |
555 self.dataset=dataset | 555 self.dataset=dataset |
556 print type(dataset) | 556 |
557 if isinstance(dataset,MinibatchDataSet): | 557 if isinstance(dataset,MinibatchDataSet): |
558 LookupList.__init__(self,fieldnames,list(dataset._fields)) | 558 LookupList.__init__(self,fieldnames,list(dataset._fields)) |
559 elif isinstance(original_dataset,MinibatchDataSet): | 559 elif isinstance(original_dataset,MinibatchDataSet): |
560 LookupList.__init__(self,fieldnames, | 560 LookupList.__init__(self,fieldnames, |
561 [original_dataset._fields[field] | 561 [original_dataset._fields[field] |