Skip to content

Commit c871e2c

Browse files
committed
Added results for mountain car
1 parent 7a98f51 commit c871e2c

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

main.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
# './pretrained_models/lunar_lander_continuous_v2/ddpg_lunarlander_v2_0'
1111
# )
1212

13+
# tester = Tester(
14+
# './configs/BipedalWalkerHardcore-v3.json',
15+
# './pretrained_models/bipedal_walker_hardcore_v3/ddpg_bipedalwalker_hardcore_v3_0'
16+
# )
17+
1318
tester = Tester(
14-
'./configs/BipedalWalkerHardcore-v3.json',
15-
'./pretrained_models/bipedal_walker_hardcore_v3/ddpg_bipedalwalker_hardcore_v3_0'
19+
'./configs/MountainCarContinuous-v0.json',
20+
'./pretrained_models/mountain_car_v0/ddpg_mountaincar_v0_0'
1621
)
1722

18-
print('Mean Reward:', tester.test(eval_episodes=20, render=True))
23+
print('Mean Reward:', tester.test(eval_episodes=20, render=False))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ def train(self, replay_buffer, batch_size=100):
7272
actor_loss.backward()
7373
self.actor_optimizer.step()
7474
DDPGAgent.soft_update(self.critic, self.critic_target, self.tau)
75-
DDPGAgent.soft_update(self.actor, self.actor_target, self.tau)
75+
DDPGAgent.soft_update(self.actor, self.actor_target, self.tau)

0 commit comments

Comments
 (0)