Package net.myrrix.common

Examples of net.myrrix.common.MutableRecommendedItem


                    Iterator<FastByIDMap.MapEntry<float[]>> Yiterator,
                    FastIDSet knownItemIDs,
                    FastIDSet userTagIDs,
                    IDRescorer rescorer) {
    Preconditions.checkArgument(features.length > 0, "features must not be empty");
    delegate = new MutableRecommendedItem();
    this.features = features;
    this.Yiterator = Yiterator;
    this.knownItemIDs = knownItemIDs;
    this.userTagIDs = userTagIDs;
    this.rescorer = rescorer;
View Full Code Here


  private final MutableRecommendedItem delegate;
  private final Iterator<FastByIDFloatMap.MapEntry> countsIterator;
  private final IDRescorer rescorer;

  MostPopularItemsIterator(Iterator<FastByIDFloatMap.MapEntry> countsIterator, IDRescorer rescorer) {
    delegate = new MutableRecommendedItem();
    this.countsIterator = countsIterator;
    this.rescorer = rescorer;
  }
View Full Code Here

  MostSimilarItemIterator(Iterator<FastByIDMap.MapEntry<float[]>> Yiterator,
                          FastIDSet userTagIDs,
                          long[] toItemIDs,
                          float[][] itemFeatures,
                          Rescorer<LongPair> rescorer) {
    delegate = new MutableRecommendedItem();
    this.toItemIDs = toItemIDs;
    this.itemFeatures = itemFeatures;
    this.Yiterator = Yiterator;
    this.userTagIDs = userTagIDs;
    this.rescorer = rescorer;
View Full Code Here

  private final FastIDSet userTagIDs;

  RecommendedBecauseIterator(Iterator<FastByIDMap.MapEntry<float[]>> toFeaturesIterator,
                             FastIDSet userTagIDs,
                             float[] features) {
    delegate = new MutableRecommendedItem();
    this.features = features;
    this.featuresNorm = SimpleVectorMath.norm(features);
    this.toFeaturesIterator = toFeaturesIterator;
    this.userTagIDs = userTagIDs;
  }
View Full Code Here

TOP

Related Classes of net.myrrix.common.MutableRecommendedItem

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.