Interface LinkPredictionMetricFunction<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 LinkPredictionMetricFunction<U,​F>
Functions for retrieving a configured link prediction metric.
  • Method Summary

    Modifier and Type Method Description
    LinkPredictionMetric<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 some data, configures a link prediction metric.
  • Method Details

    • apply

      LinkPredictionMetric<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 some data, configures a link prediction metric.
      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 link prediction metric to apply.