Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jan 9, 2024
1 parent 4f32045 commit 839483b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def make_replay_buffer(

def make_offline_replay_buffer(rb_cfg):
data = D4RLExperienceReplay(
rb_cfg.dataset,
dataset_id=rb_cfg.dataset,
split_trajs=False,
batch_size=rb_cfg.batch_size,
sampler=SamplerWithoutReplacement(drop_last=False),
Expand Down
2 changes: 1 addition & 1 deletion examples/decision_transformer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def make_offline_replay_buffer(rb_cfg, reward_scaling):
exclude,
)
data = D4RLExperienceReplay(
rb_cfg.dataset,
dataset_id=rb_cfg.dataset,
split_trajs=True,
batch_size=rb_cfg.batch_size,
sampler=RandomSampler(), # SamplerWithoutReplacement(drop_last=False),
Expand Down
2 changes: 1 addition & 1 deletion examples/iql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def make_replay_buffer(

def make_offline_replay_buffer(rb_cfg):
data = D4RLExperienceReplay(
name=rb_cfg.dataset,
dataset_id=rb_cfg.dataset,
split_trajs=False,
batch_size=rb_cfg.batch_size,
sampler=SamplerWithoutReplacement(drop_last=False),
Expand Down

0 comments on commit 839483b

Please sign in to comment.