Skip to content

Commit

Permalink
sample trajectories bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Nov 16, 2023
1 parent 2a16b1b commit 740e16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gfn/gflownet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, pf: GFNModule, pb: GFNModule, on_policy: bool = False):
self.pb = pb
self.on_policy = on_policy

def sample_trajectories(self, env: Env, n_samples: int, policy_kwargs: Optional[dict]) -> Trajectories:
def sample_trajectories(self, env: Env, n_samples: int, **policy_kwargs) -> Trajectories:
"""Samples trajectories, optionally with specified policy kwargs."""
sampler = Sampler(estimator=self.pf)
trajectories = sampler.sample_trajectories(env, n_trajectories=n_samples, **policy_kwargs)
Expand Down

0 comments on commit 740e16f

Please sign in to comment.