Interface GlobalRerankerFunction<U>
- Type Parameters:
U
- Type of the users.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface GlobalRerankerFunction<U>
Functions for retrieving reranking algorithms.
-
Method Summary
Modifier and Type Method Description GlobalReranker<U,U>
apply(int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
Given a graph, and the preference data, obtains a trained algorithm.
-
Method Details
-
apply
GlobalReranker<U,U> apply(int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)Given a graph, and the preference data, obtains a trained algorithm.- Parameters:
cutoff
- the maximum number of elements in the original recommendation to take.norm
- the normalization scheme.graph
- the training graph.comms
- the communities for the training graph.- Returns:
- the global reranking algorithm.
-