// Path: src/main/java/io/izenecloud/HDFSHelper.java
// public static Matrix readMatrix(Path path, FileSystem fs, Configuration conf)
// 		throws IOException {
// 	FSDataInputStream in = fs.open(path);
// 	return MatrixWritable.readMatrix(in);
// }
// 
// Path: src/main/java/io/izenecloud/HDFSHelper.java
// public static Vector readVector(Path path, FileSystem fs, Configuration conf)
// 		throws IOException {
// 	FSDataInputStream in = fs.open(path);
// 	return VectorWritable.readVector(in);
// }


import static io.izenecloud.HDFSHelper.readMatrix;
import static io.izenecloud.HDFSHelper.readVector;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.mahout.math.Matrix;
import org.apache.mahout.math.SequentialAccessSparseVector;
import org.apache.mahout.math.Vector;
package io.izenecloud.larser.offline.precompute;




public class Mapper extends
		org.apache.hadoop.mapreduce.Mapper<Long, AdFeature, Long, Result> {
	private Vector beta = null;
	private Matrix A = null;
	private Vector advec = null;
	private List<Float> AStable = null;

	protected void setup(Context context) throws IOException,
			InterruptedException {
// Path: src/main/java/io/izenecloud/HDFSHelper.java
// public static Matrix readMatrix(Path path, FileSystem fs, Configuration conf)
// 		throws IOException {
// 	FSDataInputStream in = fs.open(path);
// 	return MatrixWritable.readMatrix(in);
// }
// 
// Path: src/main/java/io/izenecloud/HDFSHelper.java
// public static Vector readVector(Path path, FileSystem fs, Configuration conf)
// 		throws IOException {
// 	FSDataInputStream in = fs.open(path);
// 	return VectorWritable.readVector(in);
// }


// Path: src/main/java/io/izenecloud/larser/offline/precompute/Mapper.java
import static io.izenecloud.HDFSHelper.readMatrix;
import static io.izenecloud.HDFSHelper.readVector;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.mahout.math.Matrix;
import org.apache.mahout.math.SequentialAccessSparseVector;
import org.apache.mahout.math.Vector;

package io.izenecloud.larser.offline.precompute;




public class Mapper extends
		org.apache.hadoop.mapreduce.Mapper<Long, AdFeature, Long, Result> {
	private Vector beta = null;
	private Matrix A = null;
	private Vector advec = null;
	private List<Float> AStable = null;

	protected void setup(Context context) throws IOException,
			InterruptedException {
		Configuration conf = context.getConfiguration();