public DoubleWritable terminate() { if (partial == null) { return null; } double result = partial.getPrediction(); return new DoubleWritable(result); }
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; }
public boolean merge(PartialResult other) throws HiveException { if (other == null) { return true; } if (partial == null) { this.partial = new PartialResult(); } partial.merge(other); return true; }