Class AccuracyConfigurator<U,​F>

java.lang.Object
es.uam.eps.ir.relison.grid.links.prediction.metrics.accuracy.AccuracyConfigurator<U,​F>
Type Parameters:
U - type of the users.
All Implemented Interfaces:
LinkPredictionMetricConfigurator<U,​F>

public class AccuracyConfigurator<U,​F>
extends java.lang.Object
implements LinkPredictionMetricConfigurator<U,​F>
Grid search generator for the accuracy of the link prediction method.
See Also:
Accuracy
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String CUTOFF
    Identifier for the cutoff of the link prediction ranking.
    private static java.lang.String THRESHOLD
    Identifier for the threshold of the link prediction ranking.
  • Constructor Summary

    Constructors 
    Constructor Description
    AccuracyConfigurator()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​LinkPredictionMetricFunction<U,​F>> grid​(Grid grid)
    Obtains the different link prediction metrics to compute in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<LinkPredictionMetric<U>>> grid​(Grid grid, 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> featureData, Communities<U> comms)
    Obtains the different link prediction metrics to compute in a grid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CUTOFF

      private static final java.lang.String CUTOFF
      Identifier for the cutoff of the link prediction ranking.
      See Also:
      Constant Field Values
    • THRESHOLD

      private static final java.lang.String THRESHOLD
      Identifier for the threshold of the link prediction ranking.
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • grid

      public java.util.Map<java.lang.String,​LinkPredictionMetricFunction<U,​F>> grid​(Grid grid)
      Description copied from interface: LinkPredictionMetricConfigurator
      Obtains the different link prediction metrics to compute in a grid.
      Specified by:
      grid in interface LinkPredictionMetricConfigurator<U,​F>
      Parameters:
      grid - the grid for the link prediction metric.
      Returns:
      a map containing the different link prediction metrics.
    • grid

      public java.util.Map<java.lang.String,​java.util.function.Supplier<LinkPredictionMetric<U>>> grid​(Grid grid, 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> featureData, Communities<U> comms)
      Description copied from interface: LinkPredictionMetricConfigurator
      Obtains the different link prediction metrics to compute in a grid.
      Specified by:
      grid in interface LinkPredictionMetricConfigurator<U,​F>
      Parameters:
      grid - the grid containing the different parameters for the metric.
      trainGraph - the training network.
      testGraph - the test network.
      trainData - the training preference data.
      testData - the test preference data.
      featureData - the feature data.
      comms - the communities for the users in the network.
      Returns:
      a map containing the different link prediction metrics.