Interface IndividualSamplerFunction<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 IndividualSamplerFunction<U>
Functions for obtaining an sampling approach that, given a user, selects a group of candidate links for the prediction.
  • Method Summary

    Modifier and Type Method Description
    IndividualSampler<U> apply​(FastGraph<U> graph, FastGraph<U> extraEdges, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,​U> prefData)
    Obtains an individual sampler
  • Method Details

    • apply

      IndividualSampler<U> apply​(FastGraph<U> graph, FastGraph<U> extraEdges, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,​U> prefData)
      Obtains an individual sampler
      Parameters:
      graph - the graph for obtaining the sample.
      extraEdges - a graph containing a set of additional edges (for instance, a test graph).
      prefData - preference data for the sampler.
      Returns:
      the individual sampler.