https://github.com/mfreidank/arspy

Adaptive Rejection Sampling for Python

https://github.com/mfreidank/arspy

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary

Keywords

adaptive adaptive-rejection-sampling ars python rejection-sampling sampling statistics
Last synced: 5 months ago · JSON representation

Repository

Adaptive Rejection Sampling for Python

Basic Info
  • Host: GitHub
  • Owner: MFreidank
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 41.6 MB
Statistics
  • Stars: 8
  • Watchers: 1
  • Forks: 4
  • Open Issues: 1
  • Releases: 0
Topics
adaptive adaptive-rejection-sampling ars python rejection-sampling sampling statistics
Created over 8 years ago · Last pushed over 6 years ago
Metadata Files
Readme License

README.rst

========
ARSPY
========

|Build Status|
|Docs_|
|Coverage_|
|Pypi_|

This package provides a pure python/numpy 
implementation of adaptive rejection sampling as 
proposed by P. Wild, W.R. Gilks in 
*Algorithm AS 287: Adaptive Rejection Sampling from Log Concave Density 
functions*.

Under the (frequently satisfied) assumption that the target distribution to 
sample from has a log-concave density function, this algorithm allows us 
to sample without calculating any integrals. 

This sampling method is *exact* (all resulting samples are i.i.d) and 
*efficient* and our implementation can handle any univariate log-concave 
distribution. 

One prime use case is Gibbs sampling, where one frequently encounters many 
1D log-concave distributions.

Install
=======

Simply run::

   pip3 install ARSpy

.. |Build Status| image:: https://travis-ci.org/MFreidank/ARSpy.svg?branch=master
    :target: https://travis-ci.org/MFreidank/ARSpy

.. |Coverage_| image:: https://coveralls.io/repos/github/MFreidank/pyARS/badge.svg
   :target: https://coveralls.io/github/MFreidank/pyARS
   :alt: Coverage

.. |Docs_| image:: https://readthedocs.org/projects/arspy/badge/?version=latest
   :target: http://ARSpy.readthedocs.io/en/latest/
   :alt: Docs

.. |Pypi_| image:: https://badge.fury.io/py/ARSpy.svg
    :target: https://badge.fury.io/py/ARSpy

Documentation
=============
Our documentation can be found at http://arspy.readthedocs.io/en/latest/.

Owner

  • Name: Moritz Freidank
  • Login: MFreidank
  • Kind: user
  • Location: Grenzach-Wyhlen, Germany

“To bear and not to own; to act and not lay claim; to do the work and let it go: for just letting it go is what makes it stay.” ― Lao Tzu

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 60
  • Total Committers: 4
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.483
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Moritz Freidank f****m@i****e 31
MFreidank f****m@y****e 26
Matt Graham m****m@g****m 2
Moritz Freidank f****m@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 months
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 3.0
  • Merged pull requests: 1
  • 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
  • bsxfan (1)
Pull Request Authors
  • matt-graham (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

docs/requirements-docs.txt pypi
  • numpy >=1.11.0
  • numpydoc *
requirements.txt pypi
  • numpy >=1.11.0