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 13
13
parser .add_argument ('--epochs' , type = int , default = 100 )
14
14
parser .add_argument ('--randomseed' , type = int , default = 100 )
15
15
parser .add_argument ('--lr' , type = float , default = 0.0001 )
16
- parser .add_argument ('--penalty' , type = float , default = 10000 )
16
+ parser .add_argument ('--penalty' , type = float , default = 5000 )
17
17
18
18
args = parser .parse_args ()
19
19
run_id = args .name
Original file line number Diff line number Diff line change 8
8
parser .add_argument ('--strength' , type = float , default = 0.2 )
9
9
parser .add_argument ('--noise' , type = float , default = 0.3 )
10
10
parser .add_argument ('--name' , type = str , default = 'mnist_model' )
11
- parser .add_argument ('--randomseed' , type = int , default = 2021 )
11
+ parser .add_argument ('--randomseed' , type = int , default = 100 )
12
12
parser .add_argument ('--epochs' , type = int , default = 10 )
13
13
14
14
args = parser .parse_args ()
19
19
f .write ("\n " )
20
20
f .close ()
21
21
22
- # torch.manual_seed(args.randomseed)
22
+ torch .manual_seed (args .randomseed )
23
23
24
24
def printwrite (x ):
25
25
print (x )
You can’t perform that action at this time.
0 commit comments