Class RerankerGridSelector<U>
java.lang.Object
es.uam.eps.ir.relison.grid.links.recommendation.rerankers.RerankerGridSelector<U>
- Type Parameters:
U
- Type of the users
public class RerankerGridSelector<U>
extends java.lang.Object
Class that translates from a grid to the different contact recommendation algorithns.
-
Constructor Summary
Constructors Constructor Description RerankerGridSelector()
-
Method Summary
Modifier and Type Method Description org.jooq.lambda.tuple.Tuple2<java.lang.String,GlobalRerankerFunction<U>>
getReranker(java.lang.String reranker, Parameters params)
Given some initial data, obtains a single reranking algorithm.org.jooq.lambda.tuple.Tuple2<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>>
getReranker(java.lang.String reranker, Parameters params, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
Given some initial data, obtains a single reranking algorithm.RerankerGridSearch<U>
getRerankerGridSearch(java.lang.String reranker)
Obtains the different variants of the available algorithms using the different parameters in the grid.java.util.Map<java.lang.String,GlobalRerankerFunction<U>>
getRerankers(java.lang.String reranker, Configurations configs)
Given some initial data, obtains the reranking algorithms.java.util.Map<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>>
getRerankers(java.lang.String reranker, Configurations configs, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
Given some initial data, obtains the reranking algorithms.java.util.Map<java.lang.String,GlobalRerankerFunction<U>>
getRerankers(java.lang.String reranker, Grid grid)
Given some initial data, obtains the reranking algorithms.java.util.Map<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>>
getRerankers(java.lang.String reranker, Grid grid, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
Given some initial data, obtains the reranking algorithms.
-
Constructor Details
-
RerankerGridSelector
public RerankerGridSelector()
-
-
Method Details
-
getRerankers
public java.util.Map<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>> getRerankers(java.lang.String reranker, Grid grid, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)Given some initial data, obtains the reranking algorithms.- Parameters:
reranker
- the name of the reranking approach.grid
- the parameter grid of the algorithm.cutoff
- the size of the definitive ranking.norm
- suppliers for the normalization scheme.graph
- the training graph.comms
- the community partition for the training graph.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getReranker
public org.jooq.lambda.tuple.Tuple2<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>> getReranker(java.lang.String reranker, Parameters params, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)Given some initial data, obtains a single reranking algorithm.- Parameters:
reranker
- the name of the reranking approach.params
- the parameters of the algorithm.cutoff
- the size of the definitive ranking.norm
- suppliers for the normalization scheme.graph
- the training graph.comms
- the community partition for the training graph.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getRerankers
public java.util.Map<java.lang.String,java.util.function.Supplier<GlobalReranker<U,U>>> getRerankers(java.lang.String reranker, Configurations configs, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)Given some initial data, obtains the reranking algorithms.- Parameters:
reranker
- the name of the reranking approach.configs
- the different configurations for the algorithm.cutoff
- the size of the definitive ranking.norm
- suppliers for the normalization scheme.graph
- the training graph.comms
- the community partition for the training graph.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getRerankers
public java.util.Map<java.lang.String,GlobalRerankerFunction<U>> getRerankers(java.lang.String reranker, Grid grid)Given some initial data, obtains the reranking algorithms.- Parameters:
reranker
- the name of the reranking approach.grid
- the parameter grid of the algorithm.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getReranker
public org.jooq.lambda.tuple.Tuple2<java.lang.String,GlobalRerankerFunction<U>> getReranker(java.lang.String reranker, Parameters params)Given some initial data, obtains a single reranking algorithm.- Parameters:
reranker
- the name of the reranking approach.params
- the parameters of the algorithm.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getRerankers
public java.util.Map<java.lang.String,GlobalRerankerFunction<U>> getRerankers(java.lang.String reranker, Configurations configs)Given some initial data, obtains the reranking algorithms.- Parameters:
reranker
- the name of the reranking approach.configs
- the different configurations for the algorithm.- Returns:
- the suppliers for the different reranker variants, indexed by name.
-
getRerankerGridSearch
Obtains the different variants of the available algorithms using the different parameters in the grid.- Parameters:
reranker
- the name of the reranker.- Returns:
- the grid search for configuring the reranker.
-