Installationο
Installation with pip (Recommended)ο
Installation for usersο
Some features in pyCC include using the Symbolic Regression (pySR) package. Thus we recommend installing this package first. To install both packages use:
pip install pycc.id
In Google Colab or Jupyter notebook, add ! at the beginning of the line as follows:
!pip install pycc.id
Hint
This code and its documentation in this stage are continuously being improved with new features. If you encounter any problems, it could be because youβre using an older version of pyCC. In that case, we advise to upgrade the code with the command: (sometimes you need to run it two times)
pip install --upgrade pycc.id
#for colab and jupyter, add ! at the beginning
Once installed, the pycc library can be imported with:
import pycc
See the Usage and Examples tabs for examples and more information.
Note
First-time import: The first time you run import pycc, it may take βΌ3 minutes to set up dependencies (including torch, numpy, scipy, matplotlib, and pysr). Subsequent imports will be nearly instantaneous.
Installation from source (for developers)ο
Download or clone the repository and install locally with:
pip install -e .