-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Mauro Camara Escudero edited this page Aug 1, 2018
·
1 revision
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')
Class implementing a Potential probability table. Currently has variables
and table
attributes. I am working on implementing multiplication between Potentials.