This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \\ | |
| \text{transition matrix}: A \\ | |
| \text{rank vector}: x \\ | |
| \\ | |
| \text{PageRank}: x^{t+1} = A x^t \\ | |
| \\ | |
| \forall t > 2: \\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
NewerOlder