File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def __init__(
84
84
self .action_dim = action_dim
85
85
self .max_action = max_action
86
86
self .state_dim = state_dim
87
- self .writer = SummaryWriter ()
87
+ self .writer = SummaryWriter (comment = model_name )
88
88
self .iter_count = 0
89
89
if load_model :
90
90
self .load (filename = model_name , directory = load_directory )
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def __init__(
82
82
self .action_dim = action_dim
83
83
self .max_action = max_action
84
84
self .state_dim = state_dim
85
- self .writer = SummaryWriter ()
85
+ self .writer = SummaryWriter (comment = model_name )
86
86
self .iter_count = 0
87
87
if load_model :
88
88
self .load (filename = model_name , directory = load_directory )
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def __init__(
98
98
self .action_dim = action_dim
99
99
self .max_action = max_action
100
100
self .state_dim = state_dim
101
- self .writer = SummaryWriter ()
101
+ self .writer = SummaryWriter (comment = model_name )
102
102
self .iter_count = 0
103
103
if load_model :
104
104
self .load (filename = model_name , directory = load_directory )
Original file line number Diff line number Diff line change @@ -36,15 +36,16 @@ def main(args=None):
36
36
pretraining_iterations = (
37
37
10 # number of training iterations to run during pre-training
38
38
)
39
- save_every = 10 # save the model every n training cycles
39
+ save_every = 5 # save the model every n training cycles
40
40
41
- model = BPG (
41
+ model = TD3 (
42
42
state_dim = state_dim ,
43
43
action_dim = action_dim ,
44
44
max_action = max_action ,
45
45
device = device ,
46
46
save_every = save_every ,
47
47
load_model = False ,
48
+ model_name = "TD3exp1"
48
49
) # instantiate a model
49
50
50
51
sim = SIM_ENV () # instantiate environment
You can’t perform that action at this time.
0 commit comments