{"id":39682841,"url":"https://github.com/qazalbash/jaxampler","last_synced_at":"2026-01-18T09:55:04.701Z","repository":{"id":213936531,"uuid":"730041297","full_name":"Qazalbash/jaxampler","owner":"Qazalbash","description":"An open-source JAX-based statistical sampling toolkit 🧪","archived":false,"fork":false,"pushed_at":"2024-06-08T21:14:49.000Z","size":1523,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T17:14:31.357Z","etag":null,"topics":["jax","sampling","sampling-distribution","sampling-methods"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qazalbash.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.bib","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-11T04:27:17.000Z","updated_at":"2025-07-23T07:19:32.000Z","dependencies_parsed_at":"2024-01-21T21:21:41.965Z","dependency_job_id":"9fdd6a1b-bd13-49db-80cd-4cc502a833e9","html_url":"https://github.com/Qazalbash/jaxampler","commit_stats":{"total_commits":138,"total_committers":3,"mean_commits":46.0,"dds":"0.10144927536231885","last_synced_commit":"d79974d49c38fa3f03ce7efc15b3099a7c6cfaed"},"previous_names":["qazalbash/jaxampler","gwkokab/jaxampler"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Qazalbash/jaxampler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qazalbash%2Fjaxampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qazalbash%2Fjaxampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qazalbash%2Fjaxampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qazalbash%2Fjaxampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qazalbash","download_url":"https://codeload.github.com/Qazalbash/jaxampler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qazalbash%2Fjaxampler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jax","sampling","sampling-distribution","sampling-methods"],"created_at":"2026-01-18T09:55:04.629Z","updated_at":"2026-01-18T09:55:04.692Z","avatar_url":"https://github.com/Qazalbash.png","language":"Python","readme":"\u003c!-- Copyright 2023 The Jaxampler Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License. --\u003e\n\n# Jaxampler 🧪 - A JAX-based statistical sampling toolkit\n\n[![Python package](https://github.com/Qazalbash/jaxampler/actions/workflows/python-package.yml/badge.svg)](https://github.com/Qazalbash/jaxampler/actions/workflows/python-package.yml)\n[![Upload Python Package](https://github.com/Qazalbash/jaxampler/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Qazalbash/jaxampler/actions/workflows/python-publish.yml)\n[![CodeQL](https://github.com/Qazalbash/jaxampler/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Qazalbash/jaxampler/actions/workflows/github-code-scanning/codeql)\n\n![PyPI version](https://img.shields.io/pypi/v/jaxampler)\n[![Versions](https://img.shields.io/pypi/pyversions/jaxampler.svg)](https://pypi.org/project/jaxampler/)\n\n\u003e [!IMPORTANT]\n\u003e 📣 **As of April 2024 I recommends that new projects should adopt\n\u003e [NumPyro](https://github.com/pyro-ppl/numpyro) instead of Jaxampler.** 📣\n\u003e\n\u003e At the time of writing [NumPyro](https://github.com/pyro-ppl/numpyro) has a [larger](https://github.com/pyro-ppl/numpyro/graphs/contributors) and\n\u003e [more active](https://github.com/pyro-ppl/numpyro/activity) development team and\n\u003e more adoption with users. It has\n\u003e [more extensive documentation](https://num.pyro.ai/en/stable/index.html),\n\u003e [examples](https://github.com/pyro-ppl/numpyro/tree/master/examples)\n\u003e and an [active community](https://forum.pyro.ai/) creating end\n\u003e to end examples.\n\u003e\n\u003e Jaxampler will be a public archive but I have no plans to take it down from\n\u003e PyPI public repositories.\n\nJaxampler 🧪 is a statistical sampling toolkit built on top of JAX. It provides a set of high-performance sampling\nalgorithms for a wide range of statistical distributions. Jaxampler is designed to be easy to use and integrate with\nexisting JAX workflows. It is also designed to be extensible, allowing users to easily add new sampling algorithms and\nstatistical distributions.\n\nJaxampler is currently in the early stages of development and is not yet ready for production use. However, we welcome\ncontributions from the community to help us improve the library. If you are interested in contributing, please refer to\nour [contribution guidelines](CONTRIBUTING.md).\n\n## Features\n\n- 🚀 **High-Performance Sampling**: Leverage the power of JAX for high-speed, accurate sampling.\n- 🧩 **Versatile Algorithms**: A wide range of sampling methods to suit various applications.\n- 🔗 **Easy Integration**: Seamlessly integrates with existing JAX workflows.\n\n## Install\n\nYou may install the latest released version of Jaxampler through pip by doing\n\n```bash\npip3 install --upgrade jaxampler\n```\n\nYou may install the bleeding edge version by cloning this repo or doing\n\n```bash\npip3 install --upgrade git+https://github.com/Qazalbash/jaxampler\n```\n\nIf you would like to take advantage of CUDA, you will additionally need to install a specific version of JAX by doing\n\n```bash\npip install --upgrade \"jax[cuda12_pip]\" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html\n```\n\n## Requirements\n\nJaxampler requires Python 3.10 or later. It also requires the following packages:\n\n```bash\njax\u003e=0.4.0 \njaxlib\u003e=0.4.0\ntyping_extensions\u003e=4.5.0\njaxtyping\u003e=0.2.24\nmatplotlib\u003e=3.8.0\ntfp-nightly\ntqdm\n```\n\nThe test suite is based on `pytest`. To run the tests, one needs to install pytest and run `pytest` at the root\ndirectory of this repo.\n\n## Algorithms and Distributions\n\nJaxampler currently supports the following algorithms and distributions:\n\n\u003cdetails\u003e\u003csummary\u003eMonte Carlo Methods\u003c/summary\u003e\n\n- [ ] Hamiltonian Monte Carlo\n- [x] Importance Sampling\n- [ ] Metropolis Adjusted Langevin Algorithm\n- [x] Monte Carlo Box Integration\n- [x] Monte Carlo Integration\n- [ ] Multiple-Try Metropolis\n- [ ] Sequential Monte Carlo\n- [ ] Variational Inference\n- [ ] Wang-Landau Sampling\n- [ ] Worm Algorithm\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eSamplers\u003c/summary\u003e\n\u003cp\u003e\n\n- [x] Accept-Rejection Sampler\n- [x] Adaptive Accept-Rejection Sampler\n- [ ] Gibbs Sampler\n- [x] Hastings Sampler\n- [x] Inverse Transform Sampler\n- [x] Metropolis-Hastings Sampler\n- [ ] Slice Sampler\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003eRandom Variables\u003c/summary\u003e\n\u003cp\u003e\n\n- [x] Bernoulli\n- [x] Beta\n- [x] Binomial\n- [x] Boltzmann\n- [x] Cauchy\n- [x] Chi\n- [x] Exponential\n- [x] Gamma\n- [x] Geometric\n- [ ] Gumbel\n- [ ] Laplace\n- [x] Log Normal\n- [x] Logistic\n- [ ] Multivariate Normal\n- [x] Normal\n- [x] Pareto\n- [x] Poisson\n- [ ] Rademacher\n- [x] Rayleigh\n- [x] Student t\n- [x] Triangular\n- [x] Truncated Normal\n- [x] Truncated Power Law\n- [x] Uniform\n- [x] Weibull\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Citing Jaxampler\n\nTo cite this repository:\n\n```bibtex\n@software{jaxampler2023github,\n    author  = {Meesum Qazalbash},\n    title   = {{Jaxampler}: tool for sampling statistical distributions},\n    url     = {https://github.com/Qazalbash/jaxampler},\n    version = {0.0.7},\n    year    = {2023}\n}\n```\n\n## Contributors\n\n\u003ca href=\"https://github.com/Qazalbash/jaxampler/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=Qazalbash/jaxampler\" /\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqazalbash%2Fjaxampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqazalbash%2Fjaxampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqazalbash%2Fjaxampler/lists"}