Skip to content

Commit c7e3300

Browse files
committed
test
1 parent 8f65c7d commit c7e3300

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sac_discrete.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def plot(rewards):
252252

253253
# choose env
254254
env = gym.make('CartPole-v1')
255+
255256
state_dim = env.observation_space.shape[0]
256257
action_dim = env.action_space.n # discrete
257258

@@ -261,7 +262,7 @@ def plot(rewards):
261262
frame_idx = 0
262263
batch_size = 256
263264
update_itr = 1
264-
AUTO_ENTROPY=False
265+
AUTO_ENTROPY=True
265266
DETERMINISTIC=False
266267
hidden_dim = 64
267268
rewards = []

sac_v2.png

15.1 KB
Loading

0 commit comments

Comments
 (0)