Package com.cloudera.oryx.ml.serving

Examples of com.cloudera.oryx.ml.serving.IDValue


  protected static void testTopByValue(int expectedSize,
                                       List<IDValue> values,
                                       boolean reverse) {
    Assert.assertEquals(expectedSize, values.size());
    for (int i = 0; i < values.size(); i++) {
      IDValue value = values.get(i);
      double thisScore = value.getValue();
      Assert.assertFalse(Double.isNaN(thisScore));
      Assert.assertFalse(Double.isInfinite(thisScore));
      if (i > 0) {
        double lastScore = values.get(i-1).getValue();
        if (reverse) {
View Full Code Here


    List<Pair<String,Double>> sublist = selectedSublist(pairs, howMany, offset);
    return Lists.transform(sublist,
        new Function<Pair<String,Double>,IDValue>() {
          @Override
          public IDValue apply(Pair<String,Double> idDot) {
            return new IDValue(idDot.getFirst(), idDot.getSecond());
          }
        });
  }
View Full Code Here

TOP

Related Classes of com.cloudera.oryx.ml.serving.IDValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.