Class ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
es.uam.eps.ir.relison.links.recommendation.reranking.local.graph.ClusteringCoefficientComplement.ClusteringCoefficientUserReranker
- Enclosing class:
- ClusteringCoefficientComplement<U>
protected class ClusteringCoefficientComplement.ClusteringCoefficientUserReranker extends LambdaReranker.LambdaUserReranker
The individual reranker.
-
Field Summary
Fields Modifier and Type Field Description private Graph<U>
graph
The original graph.private double
triangles
The number of triangles in the graph.private double
triplets
The number of triads in the graph.Fields inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
novMap, novStats, relStats
-
Constructor Summary
Constructors Constructor Description ClusteringCoefficientUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, Graph<U> graph, double triplets, double triangles)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.recommendation.reranking.local.LambdaReranker.LambdaUserReranker
selectItem, value
-
Field Details
-
Constructor Details
-
ClusteringCoefficientUserReranker
public ClusteringCoefficientUserReranker(es.uam.eps.ir.ranksys.core.Recommendation<U,U> recommendation, int maxLength, Graph<U> graph, double triplets, double triangles)Constructor.- Parameters:
recommendation
- the recommendation to rerank.maxLength
- the maximum length of the definitive ranking.graph
- the network.triplets
- the initial number of triplets.triangles
- the initial number of triangles.
-
-
Method Details
-
nov
Description copied from class:LambdaReranker.LambdaUserReranker
Returns the novelty score of an item.- Specified by:
nov
in classLambdaReranker.LambdaUserReranker
- Parameters:
tpld
- item-relevance pair- Returns:
- the novelty of the item
-
update
-