Examples¶
Each example is a self-contained folder under examples/: configurations, the
.stl specification, sometimes a Python module for a custom environment or a
shield. Commands run from the repository root.
| Example | Shows | Extra | Model needed |
|---|---|---|---|
| CartPole | STL reward shaping, reward machines, the minimal config | — | fetched or trained |
| Highway-env | reward shaping + observation term + action constraints | highway-env |
trained |
| MiniGrid | reward machines on discrete tasks, tabular Q-learning | — | trained |
| MuJoCo | specifications as the task, alternative tasks on one plant | mujoco |
fetched or trained |
| MetaDrive | a continuous-action shield on a driving task | metadrive |
trained |
| Acrobot and MountainCar | algorithm coverage on classic control | — | fetched or trained |
Two habits apply to all of them:
- Model binaries are not tracked in git. Where a config expects one, either train it or use the fetched-policy variant.
rlr show cfg.yml --expandis the fastest way to see what a config becomes after its includes are resolved.