cogment / cogment-verse

Research platform for Human-in-the-loop learning (HILL) & Multi-Agent Reinforcement Learning (MARL)
https://cogment.ai/cogment_verse
Apache License 2.0
78 stars 14 forks source link

[BREAKING] Single python entry point & hydra based configuration #71

Closed cloderic closed 1 year ago

cloderic commented 2 years ago

This is a major refactor of Cogment Verse with 2 objectives:

What's has been done:

What should be done quickly ->

saikrishna-1996 commented 2 years ago

Box2D only installs with latest version of swig. brew install swig on Mac

saikrishna-1996 commented 2 years ago

Could not find run/simple_dqn when running lunar lander BC. could you push it?

python -m main +experiment=simple_bc/mountain_car services/environment=lunar_lander
In 'config': Could not find 'run/simple_dqn'

Available options in 'run':
        headless_play
        observe
        play
Config search path:
        provider=hydra, path=pkg://hydra.conf
        provider=main, path=file:///Users/AIRSai/cogment-verse/config
        provider=schema, path=structured://

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
cloderic commented 2 years ago

@saikrishna-1996 just pushed fixes for those two issues

cloderic commented 2 years ago

sb3 support will require this PR to be merged https://github.com/DLR-RM/stable-baselines3/pull/780 as we are using gym >= 0.22 to have good support for headless rendering on Mac and everything is in the same package.

cloderic commented 1 year ago

Not everything is fully ported back but it's been in use for >6 months, it's ready to be the new default branch, the old main is now available at https://github.com/cogment/cogment-verse/releases/tag/v0.1-prehydra