score:0

Accepted answer

so the mleap documentation for the java dsl is not so good but i was able to look over some unit tests (link) that pointed me to the right thing to use. in case anyone else is interested, this is what i did.

defaultleapframe df = leapframesupport.select(frame, arrays.aslist("feat1", "feat2", "feat3", "probability", "prediction"));
tensorsupport tensorsupport = new tensorsupport();
list<double> tensor_vals = tensorsupport.toarray(df.dataset().head().gettensor(3));

Related Query

More Query from same tag