Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single entrypoint #97

Closed
belerico opened this issue Sep 15, 2023 · 1 comment
Closed

Single entrypoint #97

belerico opened this issue Sep 15, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@belerico
Copy link
Member

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

  • lightning run model sheeprl.py COMMAND ...
  • python sheeprl.py COMMAND ...

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 algorithm_name.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 belerico self-assigned this Sep 15, 2023
@belerico belerico added the enhancement New feature or request label Sep 15, 2023
@belerico
Copy link
Member Author

Solved by #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant