⚠️ SARL is pre-release software, in active development!
SARL is a toolkit for performing reinforcement learning on environments with parameterised action spaces. Such action-spaces differ from the non-hierarchical, exclusively discrete or continuous action-spaces explored in conventional reinforcement learning.
A parameterized action-space, requires an agent to select from a discrete set of actions, then specify a continuous vector from that action's corresponding parameter-space (Masson et. al. 2016).
- P-DQN
- Platform
- Goal
- Ensure Python is installed
python --version - Ensure uv is installed
uv --version- You can install uv with
curl -LsSf https://astral.sh/uv/install.sh | sh - Full instructions and alternative methods can be found here
- You can install uv with
- Clone this repository
git clone https://github.com/ttollet/SARL.git - Change directory
cd SARL - Install dependencies to virtual environment
uv sync - Check functionality
uv run pytest - Activate virtual environment with
source .venv/bin/activate- Exit the virtual environment with
deactivate
- Exit the virtual environment with
- Install Docker
- Install Visual Studio Code and the Dev Containers extension
- Clone this repository and open it in VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) and select "Dev Containers: Reopen in Container" - The environment will be automatically set up and ready to use
- Install devenv
- Clone this repository
git clone https://github.com/ttollet/SARL.git - Change directory
cd SARL - Run
devenv upto set up the development environment - Use
devenv shellto activate the environment - Run tests and commands within the devenv shell
## Examples
python3 sarl/train.py algorithm=ppo-ppo environment=platform hydra.job.name=ppo-ppo-platform parameters.learning_steps=540000 parameters.seeds=[1] parameters.cycles=600