Hi, I am translating the Cycling Time case from https://dotnet.github.io/infer/InferNet101.pdf. The following line has the '<' override: `probTripTakesLessThan18Minutes = engine.Infer[Bernoulli](tomorrowsTime < 18.0).GetProbTrue() ` How to do it in pythonet? Thanks!
Activity
caxelrud commentedon Dec 11, 2020
I got it working using the following:
`
threshold = Variable.New[Double].Named("threshold")
threshold.ObservedValue = 18.0
probTripTakesLessThan18Minutes =engine.Infer[Bernoulli(tomorrowsTime.op_GreaterThan(threshold,tomorrowsTime)).GetProbTrue()
`