An experiment workflow and organization tool
Project description
Curifactory
Curifactory is a library and CLI tool designed to help organize and manage research experiments in python.
Experiment management must fulfill several tasks, including experiment orchestration, parameterization, caching, reproducibility, reporting, and parallelization. Existing projects such as MLFlow, MetaFlow, Luigi, and Pachyderm support these tasks in several different ways and to various degrees. Curifactory provides a different opinion, with a heavier focus on supporting general research experiment workflows for individuals or small teams working primarily in python.
You can read more about these design principles in our paper in the SciPy 2022 proceedings.
Features
- Adds a CLI layer on top of your codebase, a single entrypoint for running experiments
- Automatic caching of intermediate data and lazy loading of stored objects
- Jupyter notebook output for further exploration of an experiment run
- Docker container output with copy of codebase, conda environment, full experiment run cache, and jupyter run notebook
- HTML report output from each run with graphviz-rendered diagram of experiment
- Easily report plots and values to HTML report
- Configuration files are python scripts, allowing programmatic definition, parameter composition, and parameter inheritance
- Output logs from every run
- Run experiments directly from CLI or other python code, notebooks, etc.
Installation
pip install curifactory
Graphviz is required for certain features and can be installed through conda via:
conda install python-graphviz
Tab completion
For tab-completion in bash/zsh, install the argcomplete
package (if using curifactory inside
a conda environment, you'll need to install this in your system python.)
pip install argcomplete
To enable, you can either use argcomplete's global hook activate-global-python-argcomplete
, which
will enable tab complete on all argcomplete-enabled python packages (e.g. pytest), or you can add
eval "$(register-python-argcomplete experiment)"
to your shell's rc file. Curifactory can add
this line for you automatically with:
curifactory completion [--bash|--zsh] # use the shell flag appropriate
Once enabled, the experiment
command will provide tab complete for experiment names, parameter names, and flags.
Requirements
OS: We primarily develop and test Curifactory on Linux, but it runs on Windows and MacOS as well.
Python: 3.9-3.11
Optional:
- Conda/Mamba
- Graphviz
- Docker
- Jupyter notebook/lab
Documentation
The documentation for the latest version of Curifactory can be found at: https://ornl.github.io/curifactory/stable/index.html.
Examples
Several small example can be found in the examples
folder.
examples/notebooks
includes walkthroughs demonstrating usage of curifactory
solely in Jupyter.
Citation
Please use the following BibTeX if citing this project:
@article{Martindale2023,
doi = {10.21105/joss.05793},
url = {https://doi.org/10.21105/joss.05793},
year = {2023},
publisher = {The Open Journal},
volume = {8},
number = {90},
pages = {5793},
author = {Nathan Martindale and Scott L. Stewart and Jason Hite and Mark B. Adams},
title = {Curifactory: A research experiment manager},
journal = {Journal of Open Source Software}
}
Similar Projects
Curifactory is one tool and one opinion among many, other projects that have similar goals and/or approaches:
Project details
Release history Release notifications | RSS feed
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 curifactory-0.18.0.tar.gz
.
File metadata
- Download URL: curifactory-0.18.0.tar.gz
- Upload date:
- Size: 124.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c0580a3f1741296d2794473a0b2da84c13f603f5fb94bef36ed62f0b8d79f48 |
|
MD5 | 4d9653b0b93d4af8a57f8a48986e9bcf |
|
BLAKE2b-256 | f887a4aaadd1eeab1ebe533ec2037d05d20e8b5ddeae3c97c1b630c4a1ec1902 |
File details
Details for the file curifactory-0.18.0-py3-none-any.whl
.
File metadata
- Download URL: curifactory-0.18.0-py3-none-any.whl
- Upload date:
- Size: 99.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31c4af4cc53a511e3fcbed5f52e0069247602b2063e6c1c0bfefd62f99d8fc2 |
|
MD5 | 6c952d4780b23120b3bac141490414d1 |
|
BLAKE2b-256 | 1713c8b2ca10941086ab7f68bcb4a943712e9f51578676412d879690f78f1325 |