- changed status to resolved
Method getPruned in ProbNetOperations prunes incorrectly the network Asia
Issue #14
resolved
When the method getPruned is invoked with evidence over variables "Tuberculosis" and "TuberculosisOrCancer" and interest variable "Dyspnea", the prune performed is incorrect.
Node "Tuberculosis" is pruned with a probability of 0.5362. However, node "Tuberculosis" should never be pruned, because its evidence acts jointly with the evidence on "TuberculosisOrCancer".
Comments (6)
-
-
- changed status to open
-
- changed status to resolved
If the result of a method invocation is different with probability 0.5362 let here the code that reproduces the problem and reopen the issue.
-
reporter - changed status to open
A method "testGetPrunedMethodBN_Asia" has been added to class org.openmarkov.core.model.network.ProbNetOperationsTest.
-
- changed status to resolved
-
reporter Good work Manuel! I've just checked that VariableElimination using the prune works now correctly.
- Log in to comment
Look ProbNetOperationsTest. Method testPrune3. The remaining variables are:
Smoker Tuberculosis Cancer TuberculosisOrCancer Dyspnea Bronchitis
and there are no changes in the code