You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elif"groundtruth"notinparamsand"groundtruth_epsilon"notinparams: # no groundtruth specified
214
-
pass
215
-
else: # invalid configuration
216
-
# e.g. (params["groundtruth"] == None and params["groundtruth_epsilon"] != None) or (params["groundtruth"] != None and params["groundtruth_epsilon"] == None)
211
+
try:
212
+
params["groundtruth"]
213
+
except (TypeError, KeyError):
214
+
returnTrue# no groundtruth specified
215
+
216
+
try:
217
+
params["groundtruth"]["data"]
218
+
params["groundtruth"]["epsilon"]
219
+
returnTrue# groundtruth specified
220
+
except (TypeError, KeyError):
221
+
# e.g. (params["groundtruth"]["data"] == None and params["groundtruth"]["epsilon"] != None) or (params["groundtruth"]["data"] != None and params["groundtruth"]["epsilon"] == None)
0 commit comments