Installationο
Core Installationο
Install the package with its core dependencies only:
pip install customhys
This installs the following core dependencies:
Package |
Purpose |
|---|---|
|
Numerical computing |
|
Scientific algorithms (quasi-random sequences, statistics) |
|
Plotting benchmark functions and results |
|
Data manipulation |
|
Progress bars |
|
CEC 2005 benchmark functions |
|
Machine-learning utilities (KDE, grid search) |
Optional Extrasο
CUSTOMHyS organises optional dependencies into extras that you can install individually or in combination.
Machine Learning supportο
pip install customhys[ml]
Adds TensorFlow for neural-network-powered hyper-heuristics (see
customhys.machine_learning). On macOS Apple Silicon the package
automatically installs tensorflow-macos and tensorflow-metal.
Development toolsο
pip install customhys[dev]
Includes pytest, pytest-cov, black, ruff, mypy, and pre-commit.
Jupyter / Notebook examplesο
pip install customhys[examples]
Adds jupyter, jupyterlab, ipywidgets, and notebook.
Documentation buildingο
pip install customhys[docs]
Adds sphinx, sphinx-rtd-theme, and myst-parser.
Everything at onceο
pip install customhys[all]
Development Installation (from source)ο
# Clone the repository
git clone https://github.com/jcrvz/customhys.git
cd customhys
# Option A β using UV (recommended, 10-100Γ faster)
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --extra dev --extra ml --extra examples
# Option B β using pip
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,ml,examples]"
After installation you can verify everything works:
make validate-setup # quick health-check
make test # run the test suite
Apple Silicon (M1 / M2 / M3) Noteο
TensorFlow requires a special installation path on Apple Silicon Macs.
If the pip install customhys[ml] route fails, install TensorFlow via Conda first:
conda install -c apple tensorflow-deps
See Install TensorFlow on Mac M1/M2 with GPU support for more details.
Python Version Supportο
CUSTOMHyS supports Python 3.10, 3.11, and 3.12.