File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def __init__(
4242 val_metrics : Optional [torch .nn .Module ] = None ,
4343 test_metrics : Optional [torch .nn .Module ] = None ,
4444 pass_loss_kwargs : bool = True ,
45- optimizer_kwargs : Optional [Dict [str , Any ]] = None ,
45+ optimizer_kwargs : Optional [Dict [str , Any ]] = { "lr" : 0.003 } ,
4646 exclude_hyperparameter_logging : Optional [Iterable [str ]] = None ,
4747 ** kwargs ,
4848 ):
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ def new_create_weight(path_to_split="/home/programmer/Bachelorarbeit/split/split
3030 for row in reader :
3131 if (row [1 ] == "train" ) and i > 0 :
3232 # print(row[0])
33- weights [row [0 ]] = [1 / 1528 * 160716 ]* 1528
33+ weights [row [0 ]] = [1 / ( 1528 * 160715 ) ]* 1528
3434 # print(row[0])
3535 i = i + 1
3636 print (len (weights ))
37- torch .save (weights , "../.. /weights/init_mh.pt" )
37+ torch .save (weights , "/home/programmer/Bachelorarbeit /weights/init_mh.pt" )
3838
3939
4040def add_train_weights (ids ):
You can’t perform that action at this time.
0 commit comments