Class ItemBasedCFGridSearch<U>
java.lang.Object
es.uam.eps.ir.relison.grid.links.recommendation.algorithms.knn.ItemBasedCFGridSearch<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
AlgorithmGridSearch<U>
public class ItemBasedCFGridSearch<U> extends java.lang.Object implements AlgorithmGridSearch<U>
Grid search generator for item-based kNN collaborative filtering algorithm.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringKIdentifier for the number of neighbors of the algorithm.private static java.lang.StringQExponent of the similarity.private static java.lang.StringSIMIdentifier for the similarity.private org.ranksys.formats.parsing.Parser<U>uParserA parser for reading the users.private static java.lang.StringWEIGHTEDIdentifier for indicating whether the result is weighted or not. -
Constructor Summary
Constructors Constructor Description ItemBasedCFGridSearch(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
-
K
private static final java.lang.String KIdentifier for the number of neighbors of the algorithm.- See Also:
- Constant Field Values
-
SIM
private static final java.lang.String SIMIdentifier for the similarity.- See Also:
- Constant Field Values
-
Q
private static final java.lang.String QExponent of the similarity.- See Also:
- Constant Field Values
-
WEIGHTED
private static final java.lang.String WEIGHTEDIdentifier for indicating whether the result is weighted or not.- See Also:
- Constant Field Values
-
uParser
A parser for reading the users.
-
-
Constructor Details
-
ItemBasedCFGridSearch
Constructor.- Parameters:
uParser- a parser for reading the users.
-
-
Method Details
-
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:AlgorithmGridSearchObtains the different recommendation algorithms to execute in a grid.- Specified by:
gridin 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.
-
grid
Description copied from interface:AlgorithmGridSearchObtains the different recommendation algorithms to execute in a grid.- Specified by:
gridin interfaceAlgorithmGridSearch<U>- Parameters:
grid- The grid for the algorithm.- Returns:
- a map containing the different recommendations.
-