Skip to content

Commit

Permalink
Fix PGMORL example (#104)
Browse files Browse the repository at this point in the history
* Fix PGMORL example

* Numpy 2 breaks pymoo
  • Loading branch information
ffelten authored Jul 16, 2024
1 parent 349ecd5 commit f3d7c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/pgmorl_halfcheetah.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
)
algo.train(
total_timesteps=int(5e6),
eval_env=make_env(env_id, 42, 0, "PGMORL_eval_env", gamma=0.995)(),
ref_point=np.array([0.0, -5.0]),
known_pareto_front=None,
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
dependencies = [
"mo-gymnasium >=1.0.1",
"gymnasium>=0.28.1,<0.30",
"numpy >=1.21.0",
"numpy >=1.21.0,<2.0.0",
"torch >=1.12.0",
"pygame >=2.1.0",
"scipy >=1.7.3",
Expand Down

1 comment on commit f3d7c95

@twobox
Copy link

@twobox twobox commented on f3d7c95 Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

Please sign in to comment.