Package org.apache.mahout.cf.taste.hadoop.item

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


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

Related Classes of org.apache.mahout.cf.taste.hadoop.item.VectorOrPrefWritable

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.