-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matteo Bettini <[email protected]>
- Loading branch information
1 parent
f6803c7
commit 2803eae
Showing
5 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
|
||
# Creating a new task (from a new environemnt) | ||
|
||
Here are the steps to create a new algorithm. You can find the custom IQL algorithm | ||
created for this example in [`custom_agorithm.py`](custom_algorithm.py). | ||
Here are the steps to create a new task. | ||
|
||
1. Create your `CustomEnvTask` following the example in [`custom_task.py`](custom_task.py). | ||
This is an enum with task entries and some abstract functions you need to implement. | ||
|
||
2. Create a `customenv` folder with a yaml configuration file for each of your tasks | ||
2. Create a `customenv` folder with a yaml configuration file for each of your tasks. | ||
You can see [`customenv`](customenv) for an example. | ||
3. Place your task script in [`benchmarl/environments/customenv/common.py`](../../../benchmarl/environments) and | ||
your config in [`benchmarl/conf/task`](../../../benchmarl/conf/task) (or any other place you want to | ||
override from). | ||
4. Add `{"customenv/{task_name}": CustomEnvTask.TASK_NAME}` to the | ||
[`benchmarl.environments.task_config_registry`](../../../benchmarl/environments/__init__.py) for all tasks. | ||
5. Load it with | ||
```bash | ||
python benchmarl/run.py task=customenv/task_name algorithm=... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters