Open GoogleCodeExporter opened 9 years ago
Yes, the output.db lists those atoms that are True in the MAP state. Every atom
in the evidence is also part of the output because atoms in the evidence are
assumed to be true (unless, of course, if you set them to false by negating
them).
If you think there's something wrong with the output, please attach your model
and evidence files.
Original comment by mniepert
on 2 Dec 2014 at 2:12
I think there is actually a problem in Rockit when negations, constants and
negative weights are combined.
Consider the following evidence
evidence.db
------------
Smokes("A")
Smokes("B")
And the two mln files:
prog1.mln
------------
1 Friends(x,"A")
prog2.mln
------------
-1 !Friends(x,"A")
prog1 returns
Friends("B", "A")
Friends("A", "A")
however, prog2 returns an empty file, although the MAP state should be the same!
As far as I can tell this seems a bug.
For single-atom formulas, it is easy to convert from one to the other, but if
the formula has multiple atoms it is not so easy as it may not be possible to
get around the conjunction...
Best,
Roderick
Original comment by razor4...@gmail.com
on 5 Dec 2014 at 5:06
I could replicate the behavior, thanks! I narrowed it down to the cutting place
inference algorithm. When CPI is deactivated, the output is as expected. We are
currently working on a fix to this problem.
Original comment by mniepert
on 5 Dec 2014 at 8:06
Original issue reported on code.google.com by
razor4...@gmail.com
on 24 Nov 2014 at 8:23