Class LongTailNoveltyConfigurator<U,F>
java.lang.Object
es.uam.eps.ir.relison.grid.links.recommendation.metrics.novdiv.LongTailNoveltyConfigurator<U,F>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
RecommMetricConfigurator<U,F>
public class LongTailNoveltyConfigurator<U,F> extends java.lang.Object implements RecommMetricConfigurator<U,F>
Grid search generator for the long tail novelty of the recommendations.
- See Also:
LTN
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CUTOFF
Identifier for the maximum number of recommended links to consider. -
Constructor Summary
Constructors Constructor Description LongTailNoveltyConfigurator()
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,RecommendationMetricFunction<U,F>>
grid(Grid grid)
Obtains the different recommendation algorithms to execute in a grid.java.util.Map<java.lang.String,java.util.function.Supplier<es.uam.eps.ir.ranksys.metrics.SystemMetric<U,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 recommendation algorithms to execute in a grid.
-
Field Details
-
CUTOFF
private static final java.lang.String CUTOFFIdentifier for the maximum number of recommended links to consider.- See Also:
- Constant Field Values
-
-
Constructor Details
-
LongTailNoveltyConfigurator
public LongTailNoveltyConfigurator()
-
-
Method Details
-
grid
Description copied from interface:RecommMetricConfigurator
Obtains the different recommendation algorithms to execute in a grid.- Specified by:
grid
in interfaceRecommMetricConfigurator<U,F>
- Parameters:
grid
- The grid for the algorithm.- Returns:
- a map containing the different recommendations.
-
grid
public java.util.Map<java.lang.String,java.util.function.Supplier<es.uam.eps.ir.ranksys.metrics.SystemMetric<U,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:RecommMetricConfigurator
Obtains the different recommendation algorithms to execute in a grid.- Specified by:
grid
in interfaceRecommMetricConfigurator<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 recommendations.
-