In the sheeprl.cli.eval_algorithm method we still import the evaluation file with task = importlib.import_module(f"{module}.evaluate"), with the sheeprl/{algo_name}/evaluate.py file that could be missing since the user could have changed its name. The entrypoint filename can be retrieved from the evaluation_registry.
Type of Change
Please select the one relevant option below:
Bug fix (non-breaking change that solves an issue)
Checklist
Please confirm that the following tasks have been completed:
[x] I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
[x] I have added unit tests for my changes, or updated existing tests if necessary.
[x] I have updated the documentation, if applicable.
[x] I have installed pre-commit and run locally for my code changes.
Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.
Summary
In the
sheeprl.cli.eval_algorithm
method we still import the evaluation file withtask = importlib.import_module(f"{module}.evaluate")
, with thesheeprl/{algo_name}/evaluate.py
file that could be missing since the user could have changed its name. The entrypoint filename can be retrieved from theevaluation_registry
.Type of Change
Please select the one relevant option below:
Checklist
Please confirm that the following tasks have been completed:
Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.