Skip to content
/ ABCPRC Public

Model fitting using Approximate Bayesian Computation

License

Notifications You must be signed in to change notification settings

sempwn/ABCPRC

Repository files navigation

ABCPRC

ABCPRC is an Approximate Bayesian Computation Particle Rejection Scheme designed to perform model fitting on individual-based models.

Setup

To setup, first download a local copy and then run

python setup.py install

Introduction

Import as

import ABCPRC as prc

A fitting class is setup using

m = prc.ABC()

You can then either use the built-in tolerances or fit your own using

m.fit()

The fitting can then be performed using

m.run(num_particles)

and the results shown (using seaborn),

m.trace(plot=True)

Tutorials

Three example tutorials accompany this package.

Testing

Tests are run using the python nose2 package. To install run

pip install nose2
pip install cov-core

and tests can be performed running the command

nose2 --with-coverage

About

Model fitting using Approximate Bayesian Computation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published