Examples of VectorOrPrefWritable


Examples of org.apache.mahout.cf.taste.hadoop.item.VectorOrPrefWritable

      Vector.Element e = it.next();
      int itemIndex = e.index();
      float preferenceValue = (float) e.get();
      itemIndexWritable.set(itemIndex);
      context.write(itemIndexWritable,
          new VectorOrPrefWritable(userID, preferenceValue));
    }
  }
View Full Code Here

Examples of org.apache.mahout.cf.taste.hadoop.item.VectorOrPrefWritable

public class CooccurrenceColumnWrapperMapper extends
    Mapper<IntWritable, VectorWritable, IntWritable, VectorOrPrefWritable> {

  public void map(IntWritable key, VectorWritable value, Context context)
      throws IOException, InterruptedException {
    context.write(key, new VectorOrPrefWritable(value.get()));
  }
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.