How to set up and run the PyCRM examples
uv
(recommended for faster installation) and pip
for dependency management. Choose the option that works best for your setup:
uv sync
for faster installation:
uv
installed, you can install it first:
introduction/
)q_learning.py
- Q-learning in a letter world environmentcq_learning.py
- Counterfactual Q-learningenvironment_example.py
- Basic environment setupcore/
- Core components (ground environment, labelling function, reward machine)crm/
)rm/
)scripts/
directory. These scripts are organized by example type and algorithm:
scripts/examples/
and organized as follows:
scripts/examples/crm/
- Scripts for Counting Reward Machine examplesscripts/examples/rm/
- Scripts for standard Reward Machine examplescontinuous/
- Scripts for continuous control algorithms (SAC, TD3, DDPG, etc.)discrete/
- Scripts for discrete control algorithms (DQN, etc.)