Class PersonalizedPageRankHittingTime<U>
java.lang.Object
es.uam.eps.ir.ranksys.rec.AbstractRecommender<U,I>
es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender<U,I>
es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender<U,U>
es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender<U>
es.uam.eps.ir.relison.links.recommendation.algorithms.MatrixBasedRecommender<U>
es.uam.eps.ir.relison.links.recommendation.algorithms.standalone.randomwalk.AbstractHittingTime<U>
es.uam.eps.ir.relison.links.recommendation.algorithms.standalone.randomwalk.PersonalizedPageRankHittingTime<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<U>,es.uam.eps.ir.ranksys.core.index.UserIndex<U>,es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>,es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>,es.uam.eps.ir.ranksys.rec.fast.FastRecommender<U,U>,es.uam.eps.ir.ranksys.rec.Recommender<U,U>
public class PersonalizedPageRankHittingTime<U> extends AbstractHittingTime<U>
Implementation of the Hitting time (using the personalized
PageRank transition matrix)
-
Field Summary
Fields Modifier and Type Field Description private doublerTeleport probability.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.algorithms.MatrixBasedRecommender
libraryFields inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender
graph -
Constructor Summary
Constructors Constructor Description PersonalizedPageRankHittingTime(FastGraph<U> graph, double r)Constructor.PersonalizedPageRankHittingTime(FastGraph<U> graph, MatrixLibrary library, double r)Constructor. -
Method Summary
Modifier and Type Method Description protected cern.colt.matrix.DoubleMatrix2DgetCOLTTransitionMatrix(int uidx)Obtains the transition matrix, for its use with the COLT library.protected org.jblas.DoubleMatrixgetJBLASTransitionMatrix(int uidx)Obtains the transition matrix, for its use with the JBLAS library.protected no.uib.cipr.matrix.DenseMatrixgetMTJTransitionMatrix(int uidx)Obtains the transition matrix, for its use with the MTJ library.Methods inherited from class es.uam.eps.ir.relison.links.recommendation.algorithms.standalone.randomwalk.AbstractHittingTime
getCOLTMatrix, getJBLASMatrix, getMTJMatrixMethods inherited from class es.uam.eps.ir.relison.links.recommendation.algorithms.MatrixBasedRecommender
getMatrix, getScoresMapMethods inherited from class es.uam.eps.ir.relison.links.recommendation.UserFastRankingRecommender
getFreq, getFreq, getGraphMethods inherited from class es.uam.eps.ir.ranksys.rec.fast.FastRankingRecommender
getRecommendationMethods inherited from class es.uam.eps.ir.ranksys.rec.fast.AbstractFastRecommender
getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, getRecommendation, iidx2item, item2iidx, numItems, numUsers, uidx2user, user2uidxMethods inherited from class es.uam.eps.ir.ranksys.rec.AbstractRecommender
getRecommendation, getRecommendationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
containsItem, getAllIidx, getAllItems, iidx2item, iidx2item, item2iidx, item2iidx
-
Field Details
-
r
private final double rTeleport probability.
-
-
Constructor Details
-
PersonalizedPageRankHittingTime
Constructor.- Parameters:
graph- a fast graph representing the social network.r- teleport probability.
-
PersonalizedPageRankHittingTime
Constructor.- Parameters:
graph- a fast graph representing the social network.library- the matrix library to use.r- teleport probability.
-
-
Method Details
-
getJBLASTransitionMatrix
protected org.jblas.DoubleMatrix getJBLASTransitionMatrix(int uidx)Description copied from class:AbstractHittingTimeObtains the transition matrix, for its use with the JBLAS library.- Specified by:
getJBLASTransitionMatrixin classAbstractHittingTime<U>- Parameters:
uidx- the target user of the recommendation.- Returns:
- a JBLAS matrix containing the transitions.
-
getCOLTTransitionMatrix
protected cern.colt.matrix.DoubleMatrix2D getCOLTTransitionMatrix(int uidx)Description copied from class:AbstractHittingTimeObtains the transition matrix, for its use with the COLT library.- Specified by:
getCOLTTransitionMatrixin classAbstractHittingTime<U>- Parameters:
uidx- the target user of the recommendation.- Returns:
- a COLT matrix containing the transitions.
-
getMTJTransitionMatrix
protected no.uib.cipr.matrix.DenseMatrix getMTJTransitionMatrix(int uidx)Description copied from class:AbstractHittingTimeObtains the transition matrix, for its use with the MTJ library.- Specified by:
getMTJTransitionMatrixin classAbstractHittingTime<U>- Parameters:
uidx- the target user of the recommendation.- Returns:
- a MTJ matrix containing the transitions.
-