float ratingShift = Float.parseFloat(getOption("ratingShift")); Job itemIDIndex = prepareJob(getInputPath(), getOutputPath(ITEMID_INDEX), TextInputFormat.class, ItemIDIndexMapper.class, VarIntWritable.class, VarLongWritable.class, ItemIDIndexReducer.class, VarIntWritable.class, VarLongWritable.class, SequenceFileOutputFormat.class); getOutputPath(USER_VECTORS), TextInputFormat.class, ToItemPrefsMapper.class, HadoopUtil.writeInt(numberOfUsers, getOutputPath(NUM_USERS), getConf()); Job toItemVectors = prepareJob(getOutputPath(USER_VECTORS), getOutputPath(RATING_MATRIX), ToItemVectorsMapper.class, IntWritable.class, VectorWritable.class, ToItemVectorsReducer.class, IntWritable.class, VectorWritable.class);
float ratingShift = Float.parseFloat(getOption("ratingShift")); Job itemIDIndex = prepareJob(getInputPath(), getOutputPath(ITEMID_INDEX), TextInputFormat.class, ItemIDIndexMapper.class, VarIntWritable.class, VarLongWritable.class, ItemIDIndexReducer.class, VarIntWritable.class, VarLongWritable.class, SequenceFileOutputFormat.class); getOutputPath(USER_VECTORS), TextInputFormat.class, ToItemPrefsMapper.class, HadoopUtil.writeInt(numberOfUsers, getOutputPath(NUM_USERS), getConf()); Job toItemVectors = prepareJob(getOutputPath(USER_VECTORS), getOutputPath(RATING_MATRIX), ToItemVectorsMapper.class, IntWritable.class, VectorWritable.class, ToItemVectorsReducer.class, IntWritable.class, VectorWritable.class);
float ratingShift = Float.parseFloat(getOption("ratingShift")); Job itemIDIndex = prepareJob(getInputPath(), getOutputPath(ITEMID_INDEX), TextInputFormat.class, ItemIDIndexMapper.class, VarIntWritable.class, VarLongWritable.class, ItemIDIndexReducer.class, VarIntWritable.class, VarLongWritable.class, SequenceFileOutputFormat.class); getOutputPath(USER_VECTORS), TextInputFormat.class, ToItemPrefsMapper.class, HadoopUtil.writeInt(numberOfUsers, getOutputPath(NUM_USERS), getConf()); Job toItemVectors = prepareJob(getOutputPath(USER_VECTORS), getOutputPath(RATING_MATRIX), ToItemVectorsMapper.class, IntWritable.class, VectorWritable.class, ToItemVectorsReducer.class, IntWritable.class, VectorWritable.class);