So I have followed pretty much chapters 1 - 6 but I don't understand how a simple
Evidence = Variable.Bernoulli(0.5);
using (Variable.If(Evidence))
{
base.CreateModel();
}
Is all that you need in the model to calculate evidence. How does that C# capture my intension to calculate the evidence in such a simple statement. Thanks.