|Did you know ...||Search Documentation:|
|Packs (add-ons) for SWI-Prolog|
|Title:||Bayesian inference of model structure.|
|Rating:||Not rated. Create the first rating!|
|Author:||James Cussens http://www.cs.york.ac.uk/~jc|
|Nicos Angelopoulos http://stoics.org.uk/~nicos|
|Maintainer:||Nicos Angelopoulos http://stoics.org.uk/~nicos|
|Packager:||Nicos Angelopoulos http://stoics.org.uk/~nicos|
No reviews. Create the first review!.
Bims (Bayesian inference over model structures) implements MCMC learning over statistical models defined in the Dlp (Distributional logic programming) probabilistic language.
Bims is released under the MIT licence.
Currently there are 2 model spaces supported:
Additional model spaces can be easily implemented by defining new likelihood plug-ins and programming appropriate priors.
?- bims(  ). ?- bims( [data(carts),models(carts),likelihood(carts)] ).
The above are two equivalent ways to run the Carts example provided.
This runs 3 chains each of length 100 on the default Carts data using the default likelihood. The default dataset is the breast cancer Winsconsin (BCW) data from the machine learning repository. There are 2 categories, 9 variables and 683 data points in this dataset. You can view the data with
?- edit( pack(bims/data/carts) ).
The default likelihood is an implementation of the classification likelihood function presented in: H Chipman, E George, and R McCulloch. Bayesian CART model search (with discussion). J. of the American Statistical Association, 93:935â960, 1998.
?- bims( [models(bns)] ). ?- bims( [data(bns),models(bns),likelihood(bns)] ).
The above are two equivalent ways to run the Bns example provided.
This runs 3 chains each of length 100 on the default bns data using default likelihood. The dataset is a sampled dataset from the ASIA network and it comprises of 8 variables and 2295 datapoints. You can view the data with
?- edit( pack(bims/data/bns) ).
The default BN likelihood is an instance of the BDeu metric for scoring BN structures.
W. L. Buntine. Theory refinement of Bayesian networks. In Bruce DâAmbrosio, Philippe Smets, and Piero Bonissone, editors, Proceedings of the Seventh Annual Conference on Uncertainty in Artificial Intelligence (UAIâ1991), pages 52â60, 1991
David Heckerman, Dan Geiger, and David M. Chickering. Learning Bayesian networks: The combination of knowledge and statistical data. Machine Learning, 20(3):197â243, 1995.
An easy way to run Bims on your data is to create a new directory and within that sub-directory data/. Copy your data there and pass options data/1 to the basename of the data file.
For example, assuming your data are in data/bcw.pl
?- bims( [models(carts),data(bcw)] ).
To learn new statistical models create a subdirectory within models/ with new model name and place within there directories lklhoods and dlps containing code implementing the likelihood and prior progrms respectively.
See models/carts and models/bns for examples.
Pack contains 432 files holding a total of 950K bytes.