A collection of usefull hydra callbacks for hydra configuration
Project description
Hydra Callbacks
A collection of usefulls callbacks for the https://hydra.cc/ configuration framework.
Installation
pip install git+https://github.com/paquiteau/hydra-callbacks
Usage
In your hydra root config file add the following:
hydra:
# ...
callbacks:
git_info:
_target_: hydra_callbacks.GitInfo
clean: true
latest_link:
_target_: hydra_callbacks.LatestRunLink
Available Callbacks
Name | Action | Author |
---|---|---|
GitInfo | Check status of Repository | paquiteau |
LatestRunLink | Get a link to the latest run | paquiteau |
MultiRunGatherer | Gather results json file in a single table | paquiteau |
RuntimePerformance | Get Execution time for each run | paquiteau |
And more to come !
Also Available
PerfLogger
: A simple to use performance logger
from hydra_callbacks import PerfLogger
import logging
log = logging.getLogger(__name__)
def main_app(cfg):
with PerfLogger(log, "step1"):
sleep(1)
with PerfLogger(log, "step2"):
sleep(2)
log.info(PerfLogger.recap())
You too, have cool Callbacks, or idea for one ?
Open a PR or an issue !
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
hydra-callbacks-0.1.2.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file hydra-callbacks-0.1.2.tar.gz
.
File metadata
- Download URL: hydra-callbacks-0.1.2.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334cd0a1fc20fdafe21403b8c889bd4c86a6d80a82e4f4d7e260610f8b8f422e |
|
MD5 | 1acea9118f5a45ac581c4e3f6eca34e0 |
|
BLAKE2b-256 | 1a233630c94ebbd8917b569721660ac5c0113c77da5522a009007c7173d84660 |
File details
Details for the file hydra_callbacks-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: hydra_callbacks-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14012570bb6150f9685df57a7b560597a941a2881b1da979a3b84efb587477d7 |
|
MD5 | 2111e7ba027b7b0040b314759f2a0e7b |
|
BLAKE2b-256 | f9be58d0abd2282e1cd3b8c62d2d9464656d1072284718566461bdedc26aecc9 |