Installation#
Requirements#
Python >= 3.10
See pyproject.toml for the exact versions of the dependencies.
Installing#
Install with pip as follows. This installs only the minimal dependencies.
pip install saealib
To install with all dependencies:
pip install "saealib[all]"
See here for the available options.
Specifying a version#
Specify a version as follows.
pip install "saealib==X.Y.Z"
# example:
pip install "saealib==0.1.0"
Specify the latest pre-release version as follows.
pip install --pre saealib
Warning
The API of pre-release versions may change or be removed without notice.
Specifying options#
Some packages are enabled by adding extra dependencies. Install these dependencies at the same time by specifying options as follows.
pip install "saealib[opt1,opt2,...]"
# example:
pip install "saealib[sklearn,parallel]"
To install all dependencies:
pip install "saealib[all]"
All options are shown in the following table.
Option |
Adds |
|---|---|
|
scikit-learn-based surrogate models |
|
XGBoost surrogate model |
|
LightGBM surrogate model |
|
PyTorch-based components |
|
|
|
Parallel evaluation via joblib |
|
DEAP algorithm and operator adapters |
|
Matplotlib-based result and history plots |
|
tqdm progress bars for experiment sweeps |
|
Rich progress bars for experiment sweeps |
|
HDF5 trial-result storage and loading via h5py |
|
All optional dependencies listed above |
Verifying the installation#
Once installation is complete, check the version with the following command.
python -c "import saealib; print(saealib.__version__)"
See also
See CONTRIBUTING.md for a development install from source.