Skip to content

Instantly share code, notes, and snippets.

View sscdotopen's full-sized avatar

Sebastian Schelter sscdotopen

View GitHub Profile
\\
\text{transition matrix}: A \\
\text{rank vector}: x \\
\\
\text{PageRank}: x^{t+1} = A x^t \\
\\
\forall t > 2: \\
import org.apache.mahout.math.DenseVector;
import org.apache.mahout.math.Vector;
import org.apache.mahout.math.function.IntObjectProcedure;
import org.apache.mahout.math.map.OpenIntObjectHashMap;
import java.util.Random;
public class Benchmark {
static int NUM_FEATURES = 20;
import org.apache.mahout.math.DenseVector;
import org.apache.mahout.math.Vector;
import org.apache.mahout.math.function.IntObjectProcedure;
import org.apache.mahout.math.map.OpenIntObjectHashMap;
import java.util.Random;
public class Benchmark {
static int NUM_FEATURES = 20;