https://github.com/fgittins/montepython
A Markov chain-Monte Carlo sampler.
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 (4.9%) to scientific vocabulary
Keywords
Repository
A Markov chain-Monte Carlo sampler.
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
MontePython
A Markov chain-Monte Carlo (MCMC) sampler written in Python. The current implementation is based on emcee.
getting started.
In order to run the code, all that is needed is numpy. This can be installed
using conda:
conda install numpy
basic usage.
Here is a simple example of sampling from a 10-dimensional Gaussian using the Metropolis method: ``` import numpy as np import montepython
def lnprob(x, ivar): return -0.5 * np.sum(x**2 * ivar)
ndim = 10 ivar = 1 / np.random.rand(ndim) cov = np.random.rand(ndim, ndim) p0 = np.random.rand(ndim)
sampler = montepython.MetropolisSampler(cov, ndim, lnprob, args=[ivar]) sampler.run(p0, 1000) ```
Owner
- Name: Fabian Gittins
- Login: fgittins
- Kind: user
- Location: Southampton
- Company: University of Southampton
- Repositories: 1
- Profile: https://github.com/fgittins
Research fellow at the STAG Research Centre, University of Southampton. Currently spinning a lot of neutron stars.
GitHub Events
Total
Last Year
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Fabian Gittins | f****s@g****m | 9 |
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total 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
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