use of com.tencent.angel.ml.matrix.psf.update.Increment in project angel by Tencent.
the class UpdateFuncTest method testIncrement.
@Test
public void testIncrement() throws Exception {
UpdateFunc func = new Increment(w2Client.getMatrixId(), 3, localArray1);
w2Client.update(func).get();
double[] result = pull(w2Client, 3);
assert (result.length == dim);
for (int i = 0; i < result.length; i++) {
Assert.assertEquals(result[i], 0.0 + localArray1[i], delta);
}
}
Aggregations