Package for declarative hyperparameter search experiments.
Project description
Declair :cake:
Declair is a framework for declaratively defining hyperparameter optimization experiments. It uses Sacred for storing experiment results and supports Hyperopt for optimization.
At its core, Declair provides a YAML/JSON based language for defining parameter spaces for hyperparameter search as well as single experiment runs. These parameter spaces can be easily nested and may include Python objects and outputs of function calls.
Declair is focused on reproducibility and ease of use between machines. By the use of Sacred observers, it ensures that results of experiments are safely stored, together with the source code of all classes and objects used in them, as well as the Declair experiment configuration itself. To make reproduction of experiments easy between machines, it supports environment configuration files which can be used to store variables, like local dataset paths or secret tokens.
It contains various features to make defining experiments ergonomic. These include variable handling as well as configuration inheritance.
Usage
For detailed instructions on how to use Declair, see the documentation.
Installation
You can install Declair via pip.
pip install declair
Running the tests
Go into the root of the repository (i.e. where this README.md
is), install pip install pytest
and run
python -m pytest
Credits
Declair came about from attempts to recreate DeepSolaris results in PyTorch instead of Keras, with a focus on search experiment definition ergonomics and reproducibility. However, it grew to be a more extensive and general framework than originally planned. Its design based on configuration files was heavily inspired by cbds_common.
It is developed with ❤️ at CBDS.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file declair-0.1.5.tar.gz
.
File metadata
- Download URL: declair-0.1.5.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b6c6c49756c7ecd939ceb5ccb37933f264368f018dae2bef0232e7da2cc8962 |
|
MD5 | 73b45eb25f605b2653bc5a92e52fbf28 |
|
BLAKE2b-256 | d943c04ab48775bb98d02bc63c3bfd630655490c188e0d34b892f0879da51214 |
File details
Details for the file declair-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: declair-0.1.5-py3-none-any.whl
- Upload date:
- Size: 54.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c90d9beb10c1736d388f22d12e72d1dfd5f27692feec46d670235330ddb9521 |
|
MD5 | db14ca803d6b406e33708236bb6d859b |
|
BLAKE2b-256 | 67e54abe6637a65c1b2975785f637e4e0f1d6dfb4cb4d97abc27d685122ba09d |