@@ -236,7 +236,7 @@ def __init__(self, parent, model_strings):
236
236
yoff += 1
237
237
use_SGD = "SGD"
238
238
self .useSGD = QCheckBox (f"{ use_SGD } " )
239
- self .useSGD .setToolTip ("use SGD, if unchecked uses AdamW (recommended learning_rate then 1e-3 )" )
239
+ self .useSGD .setToolTip ("use SGD, if unchecked uses AdamW (recommended learning_rate then 0.001 )" )
240
240
self .useSGD .setChecked (True )
241
241
self .l0 .addWidget (self .useSGD , i + yoff , 1 , 1 , 1 )
242
242
@@ -285,10 +285,6 @@ def __init__(self, parent, model_strings):
285
285
self .l0 .addWidget (qlabel , i + 1 , 5 , 1 , 1 )
286
286
287
287
def accept (self , parent ):
288
- # set channels
289
- for i in range (2 ):
290
- parent .ChannelChoose [i ].setCurrentIndex (
291
- self .ChannelChoose [i ].currentIndex ())
292
288
# set training params
293
289
parent .training_params = {
294
290
"model_index" : self .ModelChoose .currentIndex (),
@@ -297,6 +293,8 @@ def accept(self, parent):
297
293
"n_epochs" : int (self .edits [2 ].text ()),
298
294
"model_name" : self .edits [3 ].text (),
299
295
"SGD" : True if self .useSGD .isChecked () else False ,
296
+ "channels" : [self .ChannelChoose [0 ].currentIndex (),
297
+ self .ChannelChoose [1 ].currentIndex ()],
300
298
#"use_norm": True if self.use_norm.isChecked() else False,
301
299
}
302
300
self .done (1 )
0 commit comments