Interface RecommendationMetricFunction<U,F>
- 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 RecommendationMetricFunction<U,F>
Functions for retrieving a configured recommendation metric.
-
Method Summary
Modifier and Type Method Description es.uam.eps.ir.ranksys.metrics.SystemMetric<U,U>apply(Graph<U> trainGraph, Graph<U> testGraph, es.uam.eps.ir.ranksys.core.preference.PreferenceData<U,U> trainData, es.uam.eps.ir.ranksys.core.preference.PreferenceData<U,U> testData, es.uam.eps.ir.ranksys.core.feature.FeatureData<U,F,java.lang.Double> featData, Communities<U> comms)Given a graph, and the preference data, obtains a trained algorithm.
-
Method Details
-
apply
es.uam.eps.ir.ranksys.metrics.SystemMetric<U,U> apply(Graph<U> trainGraph, Graph<U> testGraph, es.uam.eps.ir.ranksys.core.preference.PreferenceData<U,U> trainData, es.uam.eps.ir.ranksys.core.preference.PreferenceData<U,U> testData, es.uam.eps.ir.ranksys.core.feature.FeatureData<U,F,java.lang.Double> featData, Communities<U> comms)Given a graph, and the preference data, obtains a trained algorithm.- Parameters:
trainGraph- the training network.testGraph- the test network.trainData- the training preference data.testData- the test preference data.featData- the feature data.comms- the communities for the users in the network.- Returns:
- a recommendation metric to apply.
-