comparison dataset.py @ 235:a70f2c973ea5

re-enabling old ArrayDataSet indexing
author James Bergstra <bergstrj@iro.umontreal.ca>
date Wed, 28 May 2008 14:09:19 -0400
parents 38beb81f4e8b
children ae1d85aca858
comparison
equal deleted inserted replaced
234:9504940ef5ef 235:a70f2c973ea5
985 985
986 # check consistency and complete slices definitions 986 # check consistency and complete slices definitions
987 for fieldname, fieldcolumns in self.fields_columns.items(): 987 for fieldname, fieldcolumns in self.fields_columns.items():
988 if type(fieldcolumns) is int: 988 if type(fieldcolumns) is int:
989 assert fieldcolumns>=0 and fieldcolumns<data_array.shape[1] 989 assert fieldcolumns>=0 and fieldcolumns<data_array.shape[1]
990 if 0: 990 if 1:
991 #I changed this because it didn't make sense to me, 991 #I changed this because it didn't make sense to me,
992 # and it made it more difficult to write my learner. 992 # and it made it more difficult to write my learner.
993 # If it breaks stuff, let's talk about it. 993 # If it breaks stuff, let's talk about it.
994 # - James 22/05/2008 994 # - James 22/05/2008
995 self.fields_columns[fieldname]=[fieldcolumns] 995 self.fields_columns[fieldname]=[fieldcolumns]