https://github.com/agoose77/cabinetry
design and steer profile likelihood fits
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 6 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (20.6%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
design and steer profile likelihood fits
Basic Info
- Host: GitHub
- Owner: agoose77
- License: bsd-3-clause
- Default Branch: master
- Homepage: https://iris-hep.org/projects/cabinetry.html
- Size: 1.27 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of scikit-hep/cabinetry
Created over 3 years ago
· Last pushed over 3 years ago
https://github.com/agoose77/cabinetry/blob/master/
[](https://github.com/scikit-hep/cabinetry/actions?query=workflow%3ACI) [](https://cabinetry.readthedocs.io/en/latest/?badge=latest) [](https://codecov.io/gh/scikit-hep/cabinetry) [](https://badge.fury.io/py/cabinetry) [](https://github.com/conda-forge/cabinetry-feedstock) [](https://pypi.org/project/cabinetry/) [](https://github.com/psf/black) [](https://doi.org/10.5281/zenodo.4742752) [](https://scikit-hep.org/) `cabinetry` is a Python library for building and steering binned template fits. It is written with applications in High Energy Physics in mind. `cabinetry` interfaces many other powerful libraries to make it easy for an analyzer to run their statistical inference pipeline. Statistical models in [HistFactory](https://cds.cern.ch/record/1456844) format can be built by `cabinetry` from instructions in a declarative configuration. `cabinetry` makes heavy use of [`pyhf`](https://pyhf.readthedocs.io/) for statistical inference, and provides additional utilities to help study and disseminate fit results. This includes commonly used visualizations. Due to its modular approach, analyzers are free to use all of `cabinetry`'s functionality or only some pieces. `cabinetry` can be used for inference and visualization with any `pyhf`-compatible model, whether it was built with `cabinetry` or not. ## Installation `cabinetry` can be installed with `pip`: ```bash python -m pip install cabinetry ``` This will only install the minimum requirements for the core part of `cabinetry`. The following will install additional optional dependencies needed for [`ROOT`](https://root.cern/) file reading: ```bash python -m pip install cabinetry[contrib] ``` ## Hello world To run the following example, first generate the input files via the script `utils/create_ntuples.py`. ```python import cabinetry config = cabinetry.configuration.load("config_example.yml") # create template histograms cabinetry.templates.build(config) # perform histogram post-processing cabinetry.templates.postprocess(config) # build a workspace ws = cabinetry.workspace.build(config) # run a fit model, data = cabinetry.model_utils.model_and_data(ws) fit_results = cabinetry.fit.fit(model, data) # visualize the post-fit model prediction and data prediction_postfit = cabinetry.model_utils.prediction(model, fit_results=fit_results) cabinetry.visualize.data_mc(prediction_postfit, data, config=config) ``` The above is an abbreviated version of an example included in `example.py`, which shows how to use `cabinetry`. It requires additional dependencies obtained with `pip install cabinetry[contrib]`. ## Documentation Find more information in the [documentation](https://cabinetry.readthedocs.io/) and tutorial material in the [cabinetry-tutorials](https://github.com/cabinetry/cabinetry-tutorials) repository. `cabinetry` is also described in a paper submitted to vCHEP 2021: [10.5281/zenodo.4627037](https://doi.org/10.5281/zenodo.4627037). ## Acknowledgements [](https://nsf.gov/awardsearch/showAward?AWD_ID=1836650) This work was supported by the U.S. National Science Foundation (NSF) cooperative agreement [OAC-1836650 (IRIS-HEP)](https://nsf.gov/awardsearch/showAward?AWD_ID=1836650).
Owner
- Name: Angus Hollands
- Login: agoose77
- Kind: user
- Location: United Kingdom
- Company: 2i2c
- Twitter: agoose77
- Repositories: 230
- Profile: https://github.com/agoose77
Open Source Infrastructure Engineer @ 2i2c. Executable Books core team member. PhD in Nuclear Physics from the University of Birmingham.
