rule "Eval Tree Node RPart_Model - 2 - Unknown Weighted"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "2", $out
:
outcome )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"2",
visitMode == "WEIGHTED_CONFIDENCE" || ==
"LAST_PREDICTION" || == "NULL_PREDICTION",
results.keySet not contains "2",
( ( mAC_STAT_CD_RE == true ) ) || ( (
mAC_CSE_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 2, collecting for later evaluation
!!!! " );
modify ( $tok ) { getResults().put( "2", $out ); }
end
rule "Eval Tree Node RPart_Model - 2 - Default Child"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "2", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"2",
visitMode == "DEFAULT_CHILD", downward == true,
results.keySet not contains "2", $conf :
confidence,
( ( mAC_STAT_CD_RE == true ) ) || ( (
mAC_CSE_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 2 !!!!, JUMPING TO Default Child "
+ $def );
modify ( $tok ) {
setConfidence( $conf * 1.0 ),
setCurrent( $def );
}
end
rule "Eval Tree Node RPart_Model - 2 - Default Child Undo Jump"
salience 5
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "2", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"2",
visitMode == "DEFAULT_CHILD", downward == false, $conf : confidence,
( ( mAC_STAT_CD_RE == true ) ) || ( (
mAC_CSE_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 2 !!!!, UNDOING JUMP penalty " +
$def );
modify ( $tok ) {
setConfidence( $conf / 1.0 );
}
end
--
View this message in context:
http://drools.46999.n3.nabble.com/PMML-Exception-excuting-consequence-for...
Sent from the Drools: User forum mailing list archive at
Nabble.com.