Permalink
Browse files

[PMML 5.x] Misc fixes

  • Loading branch information...
1 parent b6b02b4 commit 0472ca8b2577d5eaf8ed2b3f657f822b5c8bc83b @sotty sotty committed Nov 23, 2013
@@ -31,6 +31,7 @@ when
SVM( context == $ctx, $svmId : svmId == "@{svmId}", $bias : bias, $numKernel : numSvs, target == "@{posCat}", alt == "@{negCat}" )
accumulate( $k : KernelEval( svmId == $svmId, $v : value ),
$num : count( $k ),
+ $kernels : collectList( $k ),
$sum : sum( $v );
$num == $numKernel
@if{ ! simple && oneVSmany } , $sum.doubleValue() + $bias > @{threshold} @end{} )
@@ -77,7 +77,7 @@ when
results.keySet not contains "@{id}",
@{missings} )
then
-// System.out.println( "UNKNOWN found at @{id}, collecting for later evaluation !!!! " );
+ System.out.println( "UNKNOWN found at @{id}, collecting for later evaluation !!!! " );
modify ( $tok ) { getResults().put( "@{id}", $out ); }
end
@@ -65,7 +65,8 @@ when
accumulate( TreeNode( id memberOf $children, $sub : counts, $x : recordCount > 0 ),
$subs : collectList( $sub ),
$num : count( $sub ),
- $tot : sum( $x )
+ $tot : sum( $x );
+ $num == $numChi
)
$map : java.util.Map() from accumulate ( $kj : String() from $keys
and accumulate( $m : Map() from $subs, $x : sum( $m[ $kj ] != null ? $m[ $kj ] : 0 ) ),

0 comments on commit 0472ca8

Please sign in to comment.