sgmcmc: An R Package for Stochastic Gradient Markov Chain Monte Carlo

10/02/2017
by   Jack Baker, et al.
0

This paper introduces the R package sgmcmc; which can be used for Bayesian inference on problems with large datasets using stochastic gradient Markov chain Monte Carlo (SGMCMC). Traditional Markov chain Monte Carlo (MCMC) methods, such as Metropolis-Hastings, are known to run prohibitively slowly as the dataset size increases. SGMCMC solves this issue by only using a subset of data at each iteration. SGMCMC requires calculating gradients of the log likelihood and log priors, which can be time consuming and error prone to perform by hand. The sgmcmc package calculates these gradients itself using automatic differentiation, making the implementation of these methods much easier. To do this, the package uses the software library TensorFlow, which has a variety of statistical distributions and mathematical operations as standard, meaning a wide class of models can be built using this framework. SGMCMC has become widely adopted in the machine learning literature, but less so in the statistics community. We believe this may be partly due to lack of software; this package aims to bridge this gap.

READ FULL TEXT
research
07/16/2019

Stochastic gradient Markov chain Monte Carlo

Markov chain Monte Carlo (MCMC) algorithms are generally regarded as the...
research
09/15/2020

Efficient Bayesian generalized linear models with time-varying coefficients: The walker package in R

The R package walker extends standard Bayesian general linear models to ...
research
09/03/2023

Tropical Geometric Tools for Machine Learning: the TML package

In the last decade, developments in tropical geometry have provided a nu...
research
06/13/2023

simmr: A package for fitting Stable Isotope Mixing Models in R

We introduce an R package for fitting Stable Isotope Mixing Models (SIMM...
research
10/23/2019

Automatically Batching Control-Intensive Programs for Modern Accelerators

We present a general approach to batching arbitrary computations for acc...
research
03/15/2022

ergm 4: Computational Improvements

The ergm package supports the statistical analysis and simulation of net...
research
01/10/2013

Iterative Markov Chain Monte Carlo Computation of Reference Priors and Minimax Risk

We present an iterative Markov chainMonte Carlo algorithm for computingr...

Please sign up or login with your details

Forgot password? Click here to reset