Interface IndividualSamplingAlgorithmConfigurator<U>
- Type Parameters:
U
- type of the users
- All Known Implementing Classes:
AllSamplerConfigurator
,DistanceTwoIndividualSamplerConfigurator
,DistanceTwoLinkPredictionIndividualSamplerConfigurator
,LinkPredictionSamplerConfigurator
,RecommenderIndividualSamplerConfigurator
public interface IndividualSamplingAlgorithmConfigurator<U>
Definition of the classes for obtaining the parameters for different sampling approaches.
Such sampling approaches are applied to each different user in the network separately.
-
Method Summary
Modifier and Type Method Description org.jooq.lambda.tuple.Tuple2<java.lang.String,IndividualSamplerFunction<U>>
grid(Parameters params)
Obtains a function for obtaining an individual sampling algorithm.org.jooq.lambda.tuple.Tuple2<java.lang.String,IndividualSampler<U>>
grid(Parameters params, FastGraph<U> trainGraph, FastGraph<U> testGraph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)
Obtains an individual sampling algorithm.
-
Method Details
-
grid
org.jooq.lambda.tuple.Tuple2<java.lang.String,IndividualSampler<U>> grid(Parameters params, FastGraph<U> trainGraph, FastGraph<U> testGraph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)Obtains an individual sampling algorithm.- Parameters:
params
- the parameter selection for the approach.trainGraph
- the original graph.testGraph
- a test graph to consider when sampling.prefData
- the training preference data.- Returns:
- a pair containing the name of the algorithm and the configured algorithm.
-
grid
org.jooq.lambda.tuple.Tuple2<java.lang.String,IndividualSamplerFunction<U>> grid(Parameters params)Obtains a function for obtaining an individual sampling algorithm.- Parameters:
params
- the sampling parameters.- Returns:
- a pair containing the name of the algorithm and a function for obtaining the configured algorithm.
-