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.1.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for hydra_callbacks-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50c098661da6ae24ba9dab5d2ad030248301025661726fed1d3b8ac8c5e07cdf |
|
MD5 | 78a5ff21f2f5d3aab84eb9f9d6bd91dd |
|
BLAKE2b-256 | b6a45e5cc437a49a27baed59d977d971ea12a417fd1c7898a70581fba6047149 |