{"library":"pyhf","type":"library","category":null,"description":"pyhf is a pure-Python implementation of the HistFactory statistical model for binned data analysis, widely used in particle physics. It leverages modern tensor libraries like NumPy, TensorFlow, PyTorch, and JAX with automatic differentiation for efficient and scalable statistical inference. The current version is 0.7.6, and it follows a regular release cadence with patch releases addressing fixes and minor improvements, and minor versions introducing new features and sometimes API changes.","language":"python","status":"active","version":"0.7.6","tags":["physics","statistics","histfactory","autodiff","HEP","machine learning","data analysis"],"install":[{"cmd":"pip install pyhf","imports":["import pyhf","import pyhf\npyhf.set_backend(\"numpy\")","import pyhf\nmodel = pyhf.Model(...)","import pyhf\nresult = pyhf.infer.mle.fit(...)","import pyhf\nmu_test_stat = pyhf.infer.test_statistics.qmu(...)"]},{"cmd":"pip install 'pyhf[tensorflow]'","imports":[]},{"cmd":"pip install 'pyhf[torch]'","imports":[]},{"cmd":"pip install 'pyhf[jax]' 'jaxlib'","imports":[]},{"cmd":"pip install 'pyhf[full]'","imports":[]}],"homepage":"https://pyhf.github.io/pyhf/","github":"https://github.com/scikit-hep/pyhf","docs":"https://pyhf.readthedocs.io/","changelog":"https://pyhf.readthedocs.io/en/stable/release-notes.html","pypi":"https://pypi.org/project/pyhf/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":68,"avg_install_s":27.7,"avg_import_s":3.04,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pyhf/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}