Interface RecommendationAlgorithmFunction<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 RecommendationAlgorithmFunction<U>
Functions for retrieving trained recommendation algorithms.
-
Method Summary
Modifier and Type Method Description es.uam.eps.ir.ranksys.rec.Recommender<U,U>
apply(FastGraph<U> graph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)
Given a graph, and the preference data, obtains a trained algorithm.default boolean
isWeighted()
Indicates if the algorithm version to use is weighted or not.
-
Method Details
-
apply
es.uam.eps.ir.ranksys.rec.Recommender<U,U> apply(FastGraph<U> graph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)Given a graph, and the preference data, obtains a trained algorithm.- Parameters:
graph
- the graph.prefData
- the preference data.- Returns:
- the trained recommender.
-
isWeighted
default boolean isWeighted()Indicates if the algorithm version to use is weighted or not.- Returns:
- true if the algorithm version is weighted, false otherwise.
-