Skip to content

Commit 441d1ed

Browse files
committed
sync frozen lake example
1 parent 8d5e52a commit 441d1ed

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

examples/00_meta_frozen_lake.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def add_cli(parser):
5757
steps_anneal=1_000_000,
5858
randomize_eps=True,
5959
)
60+
agent_type = cli_utils.switch_agent(config, "agent", tau=0.004)
6061
cli_utils.use_config(config)
6162

6263
group_name = f"{args.run_name}_{args.seq_model}"
@@ -91,7 +92,7 @@ def add_cli(parser):
9192
traj_save_len=args.max_rollout_length,
9293
dataset=dset,
9394
ckpt_base_dir=ckpt_dir,
94-
agent_type=amago.agent.Agent,
95+
agent_type=agent_type,
9596
exploration_wrapper_type=exploration_wrapper_type,
9697
tstep_encoder_type=tstep_encoder_type,
9798
traj_encoder_type=traj_encoder_type,
@@ -100,12 +101,12 @@ def add_cli(parser):
100101
log_to_wandb=args.log,
101102
wandb_group_name=group_name,
102103
epochs=700 if not args.hard_mode else 900,
103-
parallel_actors=24,
104-
train_timesteps_per_epoch=350,
105-
train_batches_per_epoch=800,
104+
parallel_actors=32,
105+
train_timesteps_per_epoch=args.max_rollout_length,
106+
train_batches_per_epoch=1000,
106107
val_interval=20,
107108
val_timesteps_per_epoch=args.max_rollout_length * 2,
108-
ckpt_interval=50,
109+
ckpt_interval=200,
109110
env_mode="sync",
110111
)
111112

0 commit comments

Comments
 (0)