Installation

You can install the latest relase via pip:

pip install hal-cgp

This library depends on some optional packages defined in extra_requirements.txt. These are necessary, for example, to compile an individual to a SymPy expression or a PyTorch class. You can install the extra requirements for full functionality of the library via:

pip install hal-cgp[extra]

You can also install individual extra requirements by specifying the package name (without version number) in square brackets, e.g., to install the torch dependency:

pip install hal-cgp[torch]

The adventurous can install the most recent development version directly from our master branch (don’t use this in production unless there are good reasons!):

git clone git@github.com:Happy-Algorithms-League/hal-cgp.git
cd hal-cgp
pip install .[all]

To install just the development tools for static type checking and code formatting, run:

pip install hal-cgp[dev]

To install the necessary tools for building the documentation, run:

pip install hal-cgp[doc]