.gradientsAccumulator(new EncodedGradientsAccumulator(2, 1e-3))
public EncodedGradientsAccumulator build() { if (handler == null) { if (boundary == null) handler = new EncodingHandler(threshold); else handler = new EncodingHandler(threshold, boundary); } EncodedGradientsAccumulator accumulator = new EncodedGradientsAccumulator(parties, handler, initialMemory, queueSize, boundary); return accumulator; } }
if (this.accumulator == null) { log.info("Creating new GradientsAccumulator instance"); this.accumulator = new EncodedGradientsAccumulator(workers, 1e-3);
if (this.accumulator == null) { log.info("Creating new GradientsAccumulator instance"); this.accumulator = new EncodedGradientsAccumulator(workers, 1e-3);