Class LambdaMARTGridSearch<U>
java.lang.Object
es.uam.eps.ir.relison.grid.links.recommendation.algorithms.supervised.LambdaMARTGridSearch<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
AlgorithmGridSearch<U>
public class LambdaMARTGridSearch<U> extends java.lang.Object implements AlgorithmGridSearch<U>
Grid search generator for LambdaMART algorithm. Differently from other algorithms, for the LambdaMART
algorithm, we consider the grid to be a list of configurations.
- See Also:
LambdaMARTJForestsRecommender
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CONFIG
Identifier for the route of the jforests configuration file.private static java.lang.String
TEST
Identifier for the route containing the test instances.private static java.lang.String
TMP
Identifier for the route of the temporary folder.private static java.lang.String
TRAIN
Identifier for the route containing the training instances.private org.ranksys.formats.parsing.Parser<U>
uParser
Parser for reading users.private static java.lang.String
VALID
Identifier for the route containing the validation instances. -
Constructor Summary
Constructors Constructor Description LambdaMARTGridSearch(org.ranksys.formats.parsing.Parser<U> uParser)
Constructor. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,RecommendationAlgorithmFunction<U>>
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.rec.Recommender<U,U>>>
grid(Grid grid, FastGraph<U> graph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)
Obtains the different recommendation algorithms to execute in a grid.
-
Field Details
-
TRAIN
private static final java.lang.String TRAINIdentifier for the route containing the training instances.- See Also:
- Constant Field Values
-
TEST
private static final java.lang.String TESTIdentifier for the route containing the test instances.- See Also:
- Constant Field Values
-
VALID
private static final java.lang.String VALIDIdentifier for the route containing the validation instances.- See Also:
- Constant Field Values
-
CONFIG
private static final java.lang.String CONFIGIdentifier for the route of the jforests configuration file.- See Also:
- Constant Field Values
-
TMP
private static final java.lang.String TMPIdentifier for the route of the temporary folder.- See Also:
- Constant Field Values
-
uParser
Parser for reading users.
-
-
Constructor Details
-
LambdaMARTGridSearch
Constructor.- Parameters:
uParser
- a parser for reading users.
-
-
Method Details
-
grid
Description copied from interface:AlgorithmGridSearch
Obtains the different recommendation algorithms to execute in a grid.- Specified by:
grid
in interfaceAlgorithmGridSearch<U>
- 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.rec.Recommender<U,U>>> grid(Grid grid, FastGraph<U> graph, es.uam.eps.ir.ranksys.fast.preference.FastPreferenceData<U,U> prefData)Description copied from interface:AlgorithmGridSearch
Obtains the different recommendation algorithms to execute in a grid.- Specified by:
grid
in interfaceAlgorithmGridSearch<U>
- Parameters:
grid
- The grid for the algorithm.graph
- The training graph.prefData
- The preference training data.- Returns:
- a map containing the different recommendations.
-