srush/Hierarchical-Bayes-Compiler — Issue #1: Boolean Operators
Author: sinjax
Created: 2011-10-18 16:58:48+00:00
State: open

Hi,

Great work on this compiler, it has been a massive help while me and a colleague have been trying to understand LDA and other graphical models.

We're currently trying to implement a graphical model which has (or at least seems to have) a "conditional". We have variables as so:

S ~ Bin(a)
if S == 0:
T ~ Mult(b)
else:
T ~ Mult(c)

In section 4 of your documentation we noticed you elude to the support of boolean operators, but we can't see any examples of their use anywhere! Do you think what we are trying to do is expressible in hbc and if so could you give us an example?

Cheers