[pyAgrum] update notebooks #22 to last changes in inference API

parent 4c06fc40
......@@ -637,18 +637,18 @@ def getInferenceEngine(ie, inferenceCaption):
t = '<div align="left"><ul>'
if ie.nbrHardEvidence() > 0:
t += "<li><b>hard evidence</b><br/>"
t += ", ".join([ie.BN().variable(n).name() for n in ie.hardEvidenceList()])
t += ", ".join([ie.BN().variable(n).name() for n in ie.hardEvidenceNodes()])
t += "</li>"
if ie.nbrSoftEvidence() > 0:
t += "<li><b>soft evidence</b><br/>"
t += ", ".join([ie.BN().variable(n).name() for n in ie.softEvidenceList()])
t += ", ".join([ie.BN().variable(n).name() for n in ie.softEvidenceNodes()])
t += "</li>"
if ie.nbrTargets() > 0:
t += "<li><b>target(s)</b><br/>"
if ie.nbrTargets() == ie.BN().size():
t += " all"
else:
t += ", ".join([ie.BN().variable(n).name() for n in ie.targetList()])
t += ", ".join([ie.BN().variable(n).name() for n in ie.targets()])
t += "</li>"
if hasattr(ie, 'nbrJointTargets'):
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment