Skip to content
Mauro Camara Escudero edited this page Aug 1, 2018 · 1 revision

Current Status

Variable class

Class implementing a variable. This can be useful in demos and exercises in general. This is how you would use the class:

from brml.variables import Variable
# Name, order, domain
butler = Variable(name='butler', index=2, domain=('murderer', 'notmurderer')
maid = Variable(name='maid', index=1, domain=('murderer', 'notmurderer')
knife = Variable(name='knife', index=0, domain=('used', 'notused')

Potential class

Class implementing a Potential probability table. Currently has variables and table attributes. I am working on implementing multiplication between Potentials.

Clone this wiki locally