rule "Eval Tree Node RPart_Model - 3 - Unknown Weighted"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "3", $out
:
outcome )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"3",
visitMode == "WEIGHTED_CONFIDENCE" || ==
"LAST_PREDICTION" || == "NULL_PREDICTION",
results.keySet not contains "3",
( ( mAC_CSE_TYP_RE == true ) ) || ( (
mAC_STAT_CD_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 3, collecting for later evaluation
!!!! " );
modify ( $tok ) { getResults().put( "3", $out ); }
end
rule "Eval Tree Node RPart_Model - 3 - Default Child"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "3", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"3",
visitMode == "DEFAULT_CHILD", downward == true,
results.keySet not contains "3", $conf :
confidence,
( ( mAC_CSE_TYP_RE == true ) ) || ( (
mAC_STAT_CD_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 3 !!!!, JUMPING TO Default Child "
+ $def );
modify ( $tok ) {
setConfidence( $conf * 1.0 ),
setCurrent( $def );
}
end
rule "Eval Tree Node RPart_Model - 3 - Default Child Undo Jump"
salience 5
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "3", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"3",
visitMode == "DEFAULT_CHILD", downward == false, $conf : confidence,
( ( mAC_CSE_TYP_RE == true ) ) || ( (
mAC_STAT_CD_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 3 !!!!, UNDOING JUMP penalty " +
$def );
modify ( $tok ) {
setConfidence( $conf / 1.0 );
}
end
rule "Eval Tree Node RPart_Model - 7 - Down"
salience $children.size() - $children.indexOf( $child )
when
$node : TreeNode( context == "RPart_Model", $id : id == "7",
$children :
children, children.size > 0 )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"7",
$trail : trail,
( ( mAC_TYP_RE == false && vAC_TYP_RE in (
"B", "Caution" ) ) || ( ( mAC_STAT_CD_RE == true ) && ( (
mAC_STAT_CD_RE ==
false && vAC_STAT_CD_RE in ( "emptyStar", "group1",
"group3" ) ) || ( (
mCOV_CD_RE == true ) && ( ( mCOV_CD_RE == false && vCOV_CD_RE in (
"group2", "group3" ) ) || ( ( mAGE_GRD == true ) && ( (
mAGE_GRD == false
&& vAGE_GRD in ( "10대", "20대", "기타" ) ) || ( (
mAC_COT_DAY == true ) && ( (
mAC_COT_DAY == false && vAC_COT_DAY < 99.5 ) ) ) ) ) ) ) ) ) ) || (
visitMode == "AGGREGATE_NODES" && ( ( ( mCOV_CD_RE == true ) ) || ( (
mAC_TYP_RE == true ) ) || ( ( mAGE_GRD == true ) ) || ( ( mAC_STAT_CD_RE
== true ) ) || ( ( mAC_COT_DAY == true ) ) ) ) )
$child : String( this not memberOf $trail ) from $children
then
System.out.println( "Visiting node 7, going down to " + $child );
modify ( $tok ) {
getTrail().add( $child ),
setDownward( true ),
setCurrent( $child );
}
end
rule "Eval Tree Node RPart_Model - 7 - True"
salience 3
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "7", $out
:
outcome,
children.size == 0, $conf : confidence, $tot :
recordCount )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"7",
$baseConf : confidence,
$res : results, results.keySet not contains
"7",
visitMode != "AGGREGATE_NODES",
( mAC_TYP_RE == false && vAC_TYP_RE in (
"B", "Caution" ) ) || ( ( mAC_STAT_CD_RE == true ) && ( (
mAC_STAT_CD_RE ==
false && vAC_STAT_CD_RE in ( "emptyStar", "group1",
"group3" ) ) || ( (
mCOV_CD_RE == true ) && ( ( mCOV_CD_RE == false && vCOV_CD_RE in (
"group2", "group3" ) ) || ( ( mAGE_GRD == true ) && ( (
mAGE_GRD == false
&& vAGE_GRD in ( "10대", "20대", "기타" ) ) || ( (
mAC_COT_DAY == true ) && ( (
mAC_COT_DAY == false && vAC_COT_DAY < 99.5 ) ) ) ) ) ) ) ) )
)
then
System.out.println( "TRUE Solution found at 7 !!!! " );
modify( $tok ) {
setConfidence( $baseConf * ( $conf.containsKey( $out ) ? (Double)
$conf.get( $out ) : 1.0 ) ),
setTotalCount( $tot ),
setOutcome( $out ),
setCurrent( "null" );
}
end
rule "Eval Tree Node RPart_Model - 7 - Unknown Weighted"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "7", $out
:
outcome )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"7",
visitMode == "WEIGHTED_CONFIDENCE" || ==
"LAST_PREDICTION" || == "NULL_PREDICTION",
results.keySet not contains "7",
( ( mCOV_CD_RE == true ) ) || ( (
mAC_TYP_RE == true ) ) || ( ( mAGE_GRD == true ) ) || ( ( mAC_STAT_CD_RE
== true ) ) || ( ( mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 7, collecting for later evaluation
!!!! " );
modify ( $tok ) { getResults().put( "7", $out ); }
end
rule "Eval Tree Node RPart_Model - 7 - Default Child"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "7", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"7",
visitMode == "DEFAULT_CHILD", downward == true,
results.keySet not contains "7", $conf :
confidence,
( ( mCOV_CD_RE == true ) ) || ( (
mAC_TYP_RE == true ) ) || ( ( mAGE_GRD == true ) ) || ( ( mAC_STAT_CD_RE
== true ) ) || ( ( mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 7 !!!!, JUMPING TO Default Child "
+ $def );
modify ( $tok ) {
setConfidence( $conf * 1.0 ),
setCurrent( $def );
}
end
rule "Eval Tree Node RPart_Model - 7 - Default Child Undo Jump"
salience 5
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "7", $def
:
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"7",
visitMode == "DEFAULT_CHILD", downward == false, $conf : confidence,
( ( mCOV_CD_RE == true ) ) || ( (
mAC_TYP_RE == true ) ) || ( ( mAGE_GRD == true ) ) || ( ( mAC_STAT_CD_RE
== true ) ) || ( ( mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 7 !!!!, 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.