https://github.com/aesara-devs/aehmc
An HMC/NUTS implementation in Aesara
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
An HMC/NUTS implementation in Aesara
Basic Info
Statistics
- Stars: 31
- Watchers: 5
- Forks: 6
- Open Issues: 7
- Releases: 11
Topics
Metadata Files
README.md
Get started
``` python import aesara from aesara import tensor as at from aesara.tensor.random.utils import RandomStream
from aeppl import joint_logprob
from aehmc import nuts
A simple normal distribution
Y_rv = at.random.normal(0, 1)
def logprobfn(y): return jointlogprob(realized={Y_rv: y})[0]
Build the transition kernel
srng = RandomStream(seed=0) kernel = nuts.newkernel(srng, logprobfn)
Compile a function that updates the chain
yvv = Yrv.clone() initialstate = nuts.newstate(yvv, logprobfn)
stepsize = at.astensor(1e-2) inversemassmatrix=at.astensor(1.0) chaininfo, updates = kernel(initialstate, stepsize, inversemassmatrix)
nextstepfn = aesara.function([yvv], chaininfo.state.position, updates=updates)
print(nextstepfn(0))
1.1034719409361107
```
Install
The latest release of AeHMC can be installed from PyPI using pip:
bash
pip install aehmc
Or via conda-forge:
bash
conda install -c conda-forge aehmc
The current development branch of AeHMC can be installed from GitHub using pip:
bash
pip install git+https://github.com/aesara-devs/aehmc
Get help
Report bugs by opening an issue. If you have a question regarding the usage of AeHMC, start a discussion. For real-time feedback or more general chat about AeHMC use our Discord server or Gitter room.
Contribute
AeHMC welcomes contributions. A good place to start contributing is by looking at the issues.
If you want to implement a new feature, open a discussion or come chat with us on Discord or Gitter.
Owner
- Name: Aesara
- Login: aesara-devs
- Kind: organization
- Email: aesara.devs@gmail.com
- Website: https://github.com/aesara-devs
- Twitter: AesaraDevs
- Repositories: 7
- Profile: https://github.com/aesara-devs
GitHub Events
Total
Last Year
Committers
Last synced: about 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rémi Louf | r****f@g****m | 92 |
| Brandon T. Willard | b****d@u****m | 36 |
| Rémi Louf | r****i@t****m | 2 |
| Brandon T. Willard | 9****d@u****m | 1 |
| Thomas Wiecki | t****i@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 41
- Total pull requests: 56
- Average time to close issues: about 2 months
- Average time to close pull requests: 12 days
- Total issue authors: 4
- Total pull request authors: 5
- Average comments per issue: 1.12
- Average comments per pull request: 3.14
- Merged pull requests: 49
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rlouf (21)
- zoj613 (9)
- brandonwillard (9)
- twiecki (2)
Pull Request Authors
- rlouf (38)
- brandonwillard (12)
- zoj613 (4)
- gitter-badger (1)
- twiecki (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 71 last-month
-
Total dependent packages: 2
(may contain duplicates) -
Total dependent repositories: 2
(may contain duplicates) - Total versions: 21
- Total maintainers: 3
pypi.org: aehmc
HMC samplers in Aesara
- Homepage: http://github.com/aesara-devs/aehmc
- Documentation: https://aehmc.readthedocs.io/
- License: MIT License
-
Latest release: 0.0.11
published over 3 years ago
Rankings
Maintainers (3)
pypi.org: aehmc-nightly
HMC samplers in Aesara
- Homepage: http://github.com/aesara-devs/aehmc
- Documentation: https://aehmc-nightly.readthedocs.io/
- License: MIT License
-
Latest release: 0.0.10
published over 3 years ago
Rankings
Maintainers (3)
conda-forge.org: aehmc
- Homepage: https://github.com/aesara-devs/aehmc
- License: MIT
-
Latest release: 0.0.10
published over 3 years ago
Rankings
Dependencies
- actions/checkout v3 composite
- actions/download-artifact v2 composite
- actions/setup-python v4 composite
- actions/upload-artifact v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v3 composite
- actions/download-artifact v2 composite
- actions/setup-python v4 composite
- actions/upload-artifact v2 composite
- codecov/codecov-action v1 composite
- conda-incubator/setup-miniconda v2 composite
- dorny/paths-filter v2 composite
- pre-commit/action v2.0.0 composite
- aeppl *
- matplotlib *
- pymc3 *
- arviz *
- autoflake *
- black ==20.8b1
- coveralls *
- diff-cover *
- pre-commit *
- pydocstyle >=3.0.0
- pylint >=2.3.1
- pytest >=5.0.0
- pytest-cov >=2.6.1
- pytest-html >=1.20.0
- versioneer *
- aeppl >= 0.1.4
- aesara >= 2.8.11
- numpy >= 1.18.1
- scipy >= 1.4.0