Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEimer committed Dec 11, 2023
1 parent 1ba15be commit 09ae3ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/carl_with_sb3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
# Create environment
context_distributions = [NormalFloatContextFeature("GRAVITY_X", mu=9.8, sigma=1)]
context_sampler = ContextSampler(
context_distributions=context_distributions,
context_space=CARLLunarLander.get_context_space(),
seed=42,
)
context_distributions=context_distributions,
context_space=CARLLunarLander.get_context_space(),
seed=42,
)
contexts = context_sampler.sample_contexts(n_contexts=5)

print("Training contexts are:")
Expand All @@ -35,4 +35,4 @@
for i in range(1000):
action, _states = model.predict(obs, deterministic=True)
obs, rewards, dones, info = vec_env.step(action)
vec_env.render("human")
vec_env.render("human")

0 comments on commit 09ae3ce

Please sign in to comment.