This is a template repository to quickly use tbp.monty for your project, prototype, or paper.
To create a repository from this template, find and click the "Use this template" button:
After copying the template, you need to address the following TODOs.
- Update project
name
. - Update
thousandbrainsproject::tbp.monty
version. - Add any other dependencies.
- Update the project
description
- Update the project
name
- Update the
Repository
andIssues
URLs
- Delete
delete_me.png
- Delete
delete_me_too.png
- Update for your project
For a cleaner project commit history, go to your repository settings and in the Pull Requests section, only "Allow squash merging". It also helps to set your default commit message to the "Pull request title" option.
The environment for this project is managed with conda.
To create the environment, run:
conda env create -f environment.yml --subdir=osx-64
conda init zsh
conda activate project # TODO: Update to your project's name
conda config --env --set subdir osx-64
conda env create -f environment.yml --subdir=osx-64
conda init
conda activate project # TODO: Update to your project's name
conda config --env --set subdir osx-64
conda env create -f environment.yml
conda init zsh
conda activate project # TODO: Update to your project's name
conda env create -f environment.yml
conda init
conda activate project # TODO: Update to your project's name
Experiments are defined in the configs
directory.
After installing the environment, to run an experiment, run:
python run.py -e <experiment_name>
To run an experiment where episodes are executed in parallel, run:
python run_parallel.py -e <experiment_name> -n <num_parallel>
After installing the environment, you can run the following commands to check your code.
ruff format
ruff check
deptry .
mypy .
pytest