Github user myui commented on a diff in the pull request:

    https://github.com/apache/incubator-hivemall/pull/63#discussion_r110554001
  
    --- Diff: core/src/main/java/hivemall/evaluation/AUCUDAF.java ---
    @@ -188,13 +234,19 @@ public void iterate(AggregationBuffer agg, Object[] 
parameters) throws HiveExcep
             public Object terminatePartial(AggregationBuffer agg) throws 
HiveException {
                 ClassificationAUCAggregationBuffer myAggr = 
(ClassificationAUCAggregationBuffer) agg;
     
    -            Object[] partialResult = new Object[6];
    -            partialResult[0] = new DoubleWritable(myAggr.a);
    -            partialResult[1] = new DoubleWritable(myAggr.scorePrev);
    +            Object[] partialResult = new Object[11];
    +            partialResult[0] = new DoubleWritable(myAggr.indexScore);
    +            partialResult[1] = new DoubleWritable(myAggr.area);
                 partialResult[2] = new LongWritable(myAggr.fp);
                 partialResult[3] = new LongWritable(myAggr.tp);
                 partialResult[4] = new LongWritable(myAggr.fpPrev);
                 partialResult[5] = new LongWritable(myAggr.tpPrev);
    +            partialResult[6] = myAggr.areaPartialMap;
    --- End diff --
    
    revise OI. `javaDoubleObjectInspector` instead of 
`writableDoubleObjectInspector`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to