pyhf: pure-Python implementation of HistFactory statistical models

pyhf: pure-Python implementation of HistFactory statistical models - Published in JOSS (2021)
https://github.com/scikit-hep/pyhf

Keywords

asymptotic-formulas closember cls frequentist-statistics hep hep-ex high-energy-physics histfactory jax numpy python scientific-computations scikit-hep scipy statistical-inference statistics

Keywords from Contributors

parallel root bigdata root-cern file-format qt mesh hep-py archiving transformer

Last synced: 2 months ago
JSON representation

Acceptance Criteria

Repository metadata

pure-Python HistFactory implementation with tensors and autodiff


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 2 months ago

Total Commits: 1,451
Total Committers: 36
Avg Commits per committer: 40.306
Development Distribution Score (DDS): 0.458

Commits in past year: 29
Committers in past year: 7
Avg Commits per committer in past year: 4.143
Development Distribution Score (DDS) in past year: 0.586

Name Email Commits
Matthew Feickert m****t@c****h 787
Lukas l****h@g****m 248
Giordon Stark k****g 214
dependabot[bot] 4****] 62
pre-commit-ci[bot] 6****] 55
GitHub Action a****n@g****m 21
Alexander Held 4****d 17
Henry Schreiner h****r@c****h 12
Kanishk Kalra k****0@g****m 3
Aryan Roy 5****y 2
Nikolai Hartmann n****e@p****e 2
Lorenz Gaertner l****r@g****m 2
lhenkelm l****n@c****h 2
Daniel Werner 1****n 2
Beojan Stanislaus b****n@g****m 1
Chris Ellis 5****i 1
Eric Schanet e****c@c****u 1
Aksh Gupta a****7@g****m 1
Tadej Novak t****j@t****i 1
StepSecurity Bot b****t@s****o 1
Saransh Chopra s****1@g****m 1
Ruggero Turra g****o@g****m 1
Rohan Sharma r****3@g****m 1
Pradyumna Rahul p****d@g****m 1
Peter Fackeldey f****r@g****m 1
Nathan Simpson e****n@g****m 1
Melissa Weber Mendonça m****m@g****m 1
Mason Proffitt m****p@u****u 1
Marco Gorelli m****i@g****m 1
M Bussonnier b****s@g****m 1
and 6 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 2 months ago

Total issues: 124
Total pull requests: 492
Average time to close issues: 11 months
Average time to close pull requests: 5 days
Total issue authors: 22
Total pull request authors: 19
Average comments per issue: 2.91
Average comments per pull request: 1.71
Merged pull request: 420
Bot issues: 0
Bot pull requests: 121

Past year issues: 19
Past year pull requests: 62
Past year average time to close issues: N/A
Past year average time to close pull requests: 7 days
Past year issue authors: 7
Past year pull request authors: 10
Past year average comments per issue: 1.47
Past year average comments per pull request: 1.05
Past year merged pull request: 25
Past year bot issues: 0
Past year bot pull requests: 34

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/scikit-hep/pyhf

Top Issue Authors

  • matthewfeickert (47)
  • alexander-held (30)
  • kratsg (16)
  • andrewfowlie (7)
  • lukasheinrich (5)
  • MoAly98 (2)
  • lorenzennio (2)
  • ldcorpe (1)
  • ntadej (1)
  • darousso (1)
  • dantrim (1)
  • klemens90 (1)
  • melissawm (1)
  • Sinclert (1)
  • lhenkelm (1)

Top Pull Request Authors

  • matthewfeickert (282)
  • dependabot[bot] (90)
  • pre-commit-ci[bot] (31)
  • meeseeksmachine (27)
  • kratsg (17)
  • henryiii (9)
  • lukasheinrich (8)
  • alexander-held (6)
  • lorenzennio (4)
  • pfackeldey (2)
  • ligerlac (2)
  • WolfgangWaltenberger (2)
  • Carreau (2)
  • melissawm (2)
  • tkoyama010 (2)

Top Issue Labels

  • needs-triage (40)
  • bug (38)
  • feat/enhancement (36)
  • docs (28)
  • user request (17)
  • tests (10)
  • help wanted (9)
  • chore (6)
  • API (5)
  • good first issue (4)
  • CI (3)
  • research (3)
  • schema and spec (2)
  • question (2)
  • Docker (2)
  • wontfix (2)
  • style (1)
  • perf (1)
  • type checking (1)
  • experiment/belle2 (1)
  • build (1)
  • not-a-bug (1)
  • contrib (1)
  • Windows (1)
  • community (1)
  • needs-info (1)
  • follow up (1)
  • unreproducible (1)
  • packaging (1)
  • CLI (1)

Top Pull Request Labels

  • docs (160)
  • dependencies (98)
  • github-actions (95)
  • backport (88)
  • fix (88)
  • chore (88)
  • need-to-backport (70)
  • CI (66)
  • tests (44)
  • build (31)
  • feat/enhancement (30)
  • pre-commit (20)
  • Docker (19)
  • type checking (9)
  • API (7)
  • contrib (7)
  • Binder (5)
  • Windows (4)
  • python (4)
  • security (4)
  • schema and spec (2)
  • user request (2)
  • deployment (2)
  • Breaking (2)
  • need-to-forwardport (2)
  • packaging (2)
  • visualization (2)
  • community (2)
  • experiment/belle2 (2)
  • experiment/atlas (1)

Package metadata

pypi.org: pyhf

pure-Python HistFactory implementation with tensors and autodiff

  • Homepage: https://github.com/scikit-hep/pyhf
  • Documentation: https://pyhf.readthedocs.io/
  • Licenses: Apache-2.0
  • Latest release: 0.7.6 (published almost 2 years ago)
  • Last Synced: 2025-10-26T01:36:50.217Z (2 months ago)
  • Versions: 47
  • Dependent Packages: 5
  • Dependent Repositories: 27
  • Downloads: 1,253,052 Last month
  • Docker Downloads: 435
  • Rankings:
    • Dependent packages count: 1.257%
    • Docker downloads count: 1.881%
    • Downloads: 2.228%
    • Dependent repos count: 2.817%
    • Average: 2.862%
    • Stargazers count: 3.947%
    • Forks count: 5.044%
  • Maintainers (4)
conda-forge.org: pyhf

The HistFactory p.d.f. template [CERN-OPEN-2012-016] is per-se independent of its implementation in ROOT and sometimes, it's useful to be able to run statistical analysis outside of ROOT, RooFit, RooStats framework. This repo is a pure-python implementation of that statistical model for multi-bin histogram-based analysis and its interval estimation is based on the asymptotic formulas of "Asymptotic formulae for likelihood-based tests of new physics" [arXiv:1007.1727]. The aim is also to support modern computational graph libraries such as PyTorch, JAX, and TensorFlow in order to make use of features such as automatic differentiation and GPU acceleration.

  • Homepage: https://github.com/scikit-hep/pyhf
  • Licenses: Apache-2.0
  • Latest release: 0.7.0 (published over 3 years ago)
  • Last Synced: 2025-10-26T01:36:40.334Z (2 months ago)
  • Versions: 11
  • Dependent Packages: 1
  • Dependent Repositories: 3
  • Rankings:
    • Dependent repos count: 17.914%
    • Forks count: 21.482%
    • Average: 23.161%
    • Stargazers count: 24.292%
    • Dependent packages count: 28.954%

Dependencies

.github/workflows/bump-version.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/ci.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
  • mxschmitt/action-tmate v3 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v4 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/dependencies-head.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/docker.yml actions
  • actions/checkout v4 composite
  • docker/build-push-action v5 composite
  • docker/login-action v3 composite
  • docker/setup-buildx-action v3 composite
  • docker/setup-qemu-action v3 composite
.github/workflows/docs.yml actions
  • actions/checkout v4 composite
  • actions/configure-pages v3 composite
  • actions/deploy-pages v2 composite
  • actions/setup-python v4 composite
  • actions/upload-pages-artifact v2 composite
.github/workflows/lint.yml actions
  • actions/checkout v4 composite
  • hadolint/hadolint-action v3.1.0 composite
.github/workflows/lower-bound-requirements.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/merged.yml actions
  • actions/checkout v4 composite
.github/workflows/notebooks.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/publish-package.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • pypa/gh-action-pypi-publish v1.8.10 composite
.github/workflows/release_tests.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/semantic-pr-check.yml actions
  • amannn/action-semantic-pull-request v5 composite
docker/Dockerfile docker
  • ${BASE_IMAGE} latest build
  • base latest build
docker/gpu/Dockerfile docker
  • base latest build
  • nvidia/cuda 10.1-cudnn7-runtime-ubuntu18.04 build
pyproject.toml pypi
  • click >=8.0.0
  • importlib_resources >=1.4.0; python_version < '3.9'
  • jsonpatch >=1.15
  • jsonschema >=4.15.0
  • numpy *
  • pyyaml >=5.1
  • scipy >=1.5.1
  • tqdm >=4.56.0
.github/workflows/ci-windows.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite

Score: 24.231644849429106