Examples of LongPrimitiveArrayIterator


Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return this.preferenceFromUsers;
  }
 
  @Override
  public LongPrimitiveArrayIterator getUserIDs() {
    return new LongPrimitiveArrayIterator(userIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return itemIDs;
  }
 
  @Override
  public LongPrimitiveArrayIterator getItemIDs() {
    return new LongPrimitiveArrayIterator(itemIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return this.preferenceFromUsers;
  }
 
  @Override
  public LongPrimitiveArrayIterator getUserIDs() {
    return new LongPrimitiveArrayIterator(userIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return result;
  }
 
  @Override
  public LongPrimitiveArrayIterator getItemIDs() {
    return new LongPrimitiveArrayIterator(itemIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return this.preferenceFromUsers;
  }
 
  @Override
  public LongPrimitiveArrayIterator getUserIDs() {
    return new LongPrimitiveArrayIterator(userIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return itemIDs;
  }
 
  @Override
  public LongPrimitiveArrayIterator getItemIDs() {
    return new LongPrimitiveArrayIterator(itemIDs);
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

  public void testTopItems() throws Exception {
    long[] ids = new long[100];
    for (int i = 0; i < 100; i++) {
      ids[i] = i;
    }
    LongPrimitiveIterator possibleItemIds = new LongPrimitiveArrayIterator(ids);
    TopItems.Estimator<Long> estimator = new TopItems.Estimator<Long>() {
      @Override
      public double estimate(Long thing) {
        return thing;
      }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

  public void testTopItemsRandom() throws Exception {
    long[] ids = new long[100];
    for (int i = 0; i < 100; i++) {
      ids[i] = i;
    }
    LongPrimitiveIterator possibleItemIds = new LongPrimitiveArrayIterator(ids);
    final Random random = RandomUtils.getRandom();
    TopItems.Estimator<Long> estimator = new TopItems.Estimator<Long>() {
      @Override
      public double estimate(Long thing) {
        return random.nextDouble();
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

  public void testTopUsers() throws Exception {
    long[] ids = new long[100];
    for (int i = 0; i < 100; i++) {
      ids[i] = i;
    }
    LongPrimitiveIterator possibleItemIds = new LongPrimitiveArrayIterator(ids);
    TopItems.Estimator<Long> estimator = new TopItems.Estimator<Long>() {
      @Override
      public double estimate(Long thing) {
        return thing;
      }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.LongPrimitiveArrayIterator

    return this.preferenceFromUsers;
  }
 
  @Override
  public LongPrimitiveArrayIterator getUserIDs() {
    return new LongPrimitiveArrayIterator(userIDs);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.