createORTree(keyWeights,
falseTree,
trueTree)
| source code
|
To create a tree that follows the True branch iff either
the actor has accepted or the negotiation is not terminated:
>>> tree = createORTree([(StateKey({'entity':'actor','feature':'accepted'}),True), (StateKey({'entity':'self','feature':'terminated'}),False)], falseTree, trueTree)
- Parameters:
keyWeights ((Key,boolean)[]) - a list of tuples, (key,True/False) , of the
preconditions for the test to be true
falseTree - the tree to invoke if the conjunction evaluates to
False
trueTree - the tree to invoke if the conjunction evaluates to
True
falseTree,trueTree (DecisionTree)
- Returns: ProbabilityTree
- the new tree with the conjunction test at the root
Note:
the default truth value of the plane is False (i.e.,
if no keys are provided, then falseTree is returned
|