示例#1
0
 public DoubleWritable terminate() {
   if (partial == null) {
     return null;
   }
   double result = partial.getPrediction();
   return new DoubleWritable(result);
 }
示例#2
0
 public boolean iterate(
     @Nullable DoubleWritable Wj, @Nullable List<FloatWritable> Vjf, @Nullable DoubleWritable Xj)
     throws HiveException {
   if (partial == null) {
     this.partial = new PartialResult();
   }
   partial.iterate(Wj, Vjf, Xj);
   return true;
 }
示例#3
0
 public boolean merge(PartialResult other) throws HiveException {
   if (other == null) {
     return true;
   }
   if (partial == null) {
     this.partial = new PartialResult();
   }
   partial.merge(other);
   return true;
 }