Eclectic-Sheep / sheeprl

Distributed Reinforcement Learning accelerated by Lightning Fabric
https://eclecticsheep.ai
Apache License 2.0
300 stars 29 forks source link

Single entrypoint #97

Closed belerico closed 11 months ago

belerico commented 11 months ago

Right now we have multiple ways to run an experiment with sheeprl, namely:

It would be nice to have a single entrypoint so to launch every experiment with python sheeprl.py exp=..., where the exp= specifies the experiment config (predefined configs can be found under the sheeprl/configs/exp/ directory). This let us decorate only the entrypoint with the @hydra.main() decorator.

The only requirement is that algo.name=algorithm_name, where algorithm_name comes from _algorithmname.py, where algorithm_name.py is the file containing the algorithm implementation (it must contain at least one method decorated with the register_algorithm decorator)

belerico commented 11 months ago

Solved by #100