wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Same predicate appearing twice in MLN formula breaks factor graph #91

Closed riedelcastro closed 10 years ago

riedelcastro commented 10 years ago
    sum(persons) { p1 => sum(persons) { p2 => 1.1 * I(friends(p1, p2) --> (smokes(p1) == smokes(p2))) } }
riedelcastro commented 10 years ago

The problem is that when generating the table in the case where p1==p2 the same iterator is used for both smokes(p1) and smokes(p2).