@@ -50,7 +50,7 @@ def getC(f):
50
50
setup = ["create table if not exists RUNS" + runColList ,#these default keys start at 1
51
51
"create table if not exists STEPS(STEP INTEGER PRIMARY KEY, RUN int, OBJECTIVE real, TRAINACC real, TESTOBJECTIVE real, TESTACC REAL )" ,
52
52
"create table if not exists TIMES(RUN INT, TIME real)" , # stores the time of the tenth step of each run, allowing speed to be measured
53
- "create table if not exists ATTRIBS(RUN INT, NAME TEXT, ISRESULT INT, VALUE TEXT)"
53
+ "create table if not exists ATTRIBS(RUN INT, NAME TEXT, ISRESULT INT, VALUE)" #value deliberately has no affinity. some are numbers
54
54
]
55
55
infoquery = "insert into RUNS (CONTINUATION, ARCHITECTURE, SOLVER, CODE) VALUES (?,?,?,?)"
56
56
info = (continuation , architecture , solver , filecontents )
@@ -185,10 +185,18 @@ def _getAttribAsStr(run,name):
185
185
return ""
186
186
187
187
#architectureLike: if set to 5, only print info for runs with the same network as the one used in run 5
188
- #doAttribs: None means all attribs are included, a list means those attributes are included,
188
+ #doAttribs: None means all attribs are included, a list of strings means those attributes are included,
189
+ # a list containing a list of strings means those attributes are excluded
189
190
# True or False mean only the result or nonresult ones.
190
- def runList2 (avgLength = None , doPrint = True , runFrom = None , architectureLike = None , doAttribs = None ): #with times
191
- attribs = doAttribs if type (doAttribs )== list else _listAttribs (doAttribs )
191
+ defaultAttribs = None
192
+ def runList2 (avgLength = None , doPrint = True , runFrom = None , architectureLike = None , doAttribs = defaultAttribs ): #with times
193
+ if type (doAttribs )== list :
194
+ if len (doAttribs )== 1 and type (doAttribs [0 ]== list ):
195
+ attribs = [i for i in _listAttribs (None ) if i not in doAttribs [0 ]]
196
+ else :
197
+ attribs = doAttribs
198
+ else :
199
+ attribs = _listAttribs (doAttribs )
192
200
if avgLength == None :
193
201
avgLength = movingAvgLength
194
202
c = con .cursor ()
0 commit comments