[rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent
smilk
sunghee.bae at meritz.co.kr
Wed Jul 17 20:54:11 EDT 2013
rule "Eval Tree Node RPart_Model - 106 - True"
salience 3
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "106", $out :
outcome,
children.size == 0, $conf : confidence, $tot :
recordCount )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"106", $baseConf : confidence,
$res : results, results.keySet not contains
"106",
visitMode != "AGGREGATE_NODES",
( mCOV_CD_RE == false && vCOV_CD_RE in (
"group1" ) ) || ( ( mAC_TYP_RE == true ) && ( ( mAC_TYP_RE == false &&
vAC_TYP_RE in ( "A" ) ) || ( ( mAGE_GRD == true ) && ( ( mAGE_GRD == false
&& vAGE_GRD in ( "10대", "20대", "70대이상" ) ) ) ) ) )
)
then
System.out.println( "TRUE Solution found at 106 !!!! " );
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 - 106 - Unknown Weighted"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "106", $out :
outcome )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"106",
visitMode == "WEIGHTED_CONFIDENCE" || ==
"LAST_PREDICTION" || == "NULL_PREDICTION",
results.keySet not contains "106",
( ( mCOV_CD_RE == true ) ) || ( ( mAGE_GRD
== true ) ) || ( ( mAC_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 106, collecting for later
evaluation !!!! " );
modify ( $tok ) { getResults().put( "106", $out ); }
end
rule "Eval Tree Node RPart_Model - 106 - Default Child"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "106", $def :
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"106", visitMode == "DEFAULT_CHILD", downward == true,
results.keySet not contains "106", $conf :
confidence,
( ( mCOV_CD_RE == true ) ) || ( ( mAGE_GRD
== true ) ) || ( ( mAC_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 106 !!!!, JUMPING TO Default Child
" + $def );
modify ( $tok ) {
setConfidence( $conf * 1.0 ),
setCurrent( $def );
}
end
rule "Eval Tree Node RPart_Model - 106 - Default Child Undo Jump"
salience 5
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "106", $def :
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"106", visitMode == "DEFAULT_CHILD", downward == false, $conf : confidence,
( ( mCOV_CD_RE == true ) ) || ( ( mAGE_GRD
== true ) ) || ( ( mAC_TYP_RE == true ) ) )
then
System.out.println( "UNKNOWN found at 106 !!!!, UNDOING JUMP penalty " +
$def );
modify ( $tok ) {
setConfidence( $conf / 1.0 );
}
end
rule "Eval Tree Node RPart_Model - 52 - Down"
salience $children.size() - $children.indexOf( $child )
when
$node : TreeNode( context == "RPart_Model", $id : id == "52", $children
: children, children.size > 0 )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == "52",
$trail : trail,
( ( mAC_COT_DAY == false && vAC_COT_DAY >=
1094 ) || ( ( mAGE_GRD == true ) && ( ( mAGE_GRD == false && vAGE_GRD in (
"20대" ) ) ) ) ) || ( visitMode == "AGGREGATE_NODES" && ( ( ( mAGE_GRD ==
true ) ) || ( ( mAC_COT_DAY == true ) ) ) ) )
$child : String( this not memberOf $trail ) from $children
then
System.out.println( "Visiting node 52, going down to " + $child );
modify ( $tok ) {
getTrail().add( $child ),
setDownward( true ),
setCurrent( $child );
}
end
rule "Eval Tree Node RPart_Model - 52 - True"
salience 3
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "52", $out :
outcome,
children.size == 0, $conf : confidence, $tot :
recordCount )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == "52",
$baseConf : confidence,
$res : results, results.keySet not contains
"52",
visitMode != "AGGREGATE_NODES",
( mAC_COT_DAY == false && vAC_COT_DAY >=
1094 ) || ( ( mAGE_GRD == true ) && ( ( mAGE_GRD == false && vAGE_GRD in (
"20대" ) ) ) )
)
then
System.out.println( "TRUE Solution found at 52 !!!! " );
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 - 52 - Unknown Weighted"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "52", $out :
outcome )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == "52",
visitMode == "WEIGHTED_CONFIDENCE" || ==
"LAST_PREDICTION" || == "NULL_PREDICTION",
results.keySet not contains "52",
( ( mAGE_GRD == true ) ) || ( (
mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 52, collecting for later
evaluation !!!! " );
modify ( $tok ) { getResults().put( "52", $out ); }
end
rule "Eval Tree Node RPart_Model - 52 - Default Child"
salience 3
when
$node : TreeNode( context == "RPart_Model", $id : id == "52", $def :
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == "52",
visitMode == "DEFAULT_CHILD", downward == true,
results.keySet not contains "52", $conf :
confidence,
( ( mAGE_GRD == true ) ) || ( (
mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 52 !!!!, JUMPING TO Default Child
" + $def );
modify ( $tok ) {
setConfidence( $conf * 1.0 ),
setCurrent( $def );
}
end
rule "Eval Tree Node RPart_Model - 52 - Default Child Undo Jump"
salience 5
no-loop
when
$node : TreeNode( context == "RPart_Model", $id : id == "52", $def :
defaultChld != "null" && != null )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == "52",
visitMode == "DEFAULT_CHILD", downward == false, $conf : confidence,
( ( mAGE_GRD == true ) ) || ( (
mAC_COT_DAY == true ) ) )
then
System.out.println( "UNKNOWN found at 52 !!!!, 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-rule-xxx-in-yyy-java-lang-NullPointerException-using-Knowledt-tp4024963p4025009.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list