use of com.tencent.angel.ml.matrix.psf.get.base.GetFunc in project angel by Tencent.
the class AggrFuncTest method testMax.
@Test
public void testMax() throws InvalidParameterException, InterruptedException, ExecutionException {
GetFunc func = new Max(w2Client.getMatrixId(), 1);
double result = ((ScalarAggrResult) w2Client.get(func)).getResult();
double max = Double.MIN_VALUE;
for (double x : localArray1) {
if (max < x)
max = x;
}
Assert.assertEquals(result, max, delta);
}
Aggregations