Skip to main content

A library of scalable Bayesian generalised linear models with fancy features

Project description

https://travis-ci.org/NICTA/revrand.svg?branch=master https://codecov.io/github/NICTA/revrand/coverage.svg?branch=master

A library of scalable Bayesian generalised linear models with fancy features

This library implements various Bayesian linear models (Bayesian linear regression) and generalised linear models. A few features of this library are:

  • A fancy basis functions/feature composition framework for combining basis functions like radial basis function, sigmoidal basis functions, polynomial basis functions etc.

  • Basis functions that can be used to approximate Gaussian processes with shift invariant covariance functions (e.g. square exponential) when used with linear models [1], [2], [3].

  • Non-Gaussian likelihoods with Bayesian generalised linear models (GLMs). We infer all of the parameters in the GLMs using auto-encoding variational Bayes [4], and we approximate the posterior over the weights with a mixture of Gaussians, like [5].

  • Large scale learning using stochastic gradients (Adam, AdaDelta and more).

  • Scikit Learn compatibility, i.e. usable with pipelines.

Here is an example of approximating a Matern 3/2 kernel with some of our basis functions,

docs/matern32.png

here is an example of the algorithms in revrand approximating a Gaussian Process,

docs/glm_sgd_demo.png

and here is an example of running using our Bayesian GLM with a Poisson likelihood and integer observations,

docs/glm_demo.png

Have a look at some of the demo notebooks for how we generated these plots, and more!

Quickstart

To install, simply run setup.py:

$ python setup.py install

or install with pip:

$ pip install git+https://github.com/nicta/revrand.git

Now have a look at our quickstart guide to get up and running quickly!

Refer to docs/installation.rst for advanced installation instructions.

Bugs & Feedback

For bugs, questions and discussions, please use Github Issues.

Authors

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revrand-0.6.1.tar.gz (46.2 kB view details)

Uploaded Source

File details

Details for the file revrand-0.6.1.tar.gz.

File metadata

  • Download URL: revrand-0.6.1.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for revrand-0.6.1.tar.gz
Algorithm Hash digest
SHA256 ef56c41afbe1c07313158c5b2bd2ce2edc646221e7b0d377aaae6baa98182e44
MD5 a6e0467c682b86c4b12d468c34d248d5
BLAKE2b-256 00df7e62b0f7c529b4c2c9a159a5b4c4cd556852a6a359d1175ee5ca221f1e55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page