Class RandomRerankerGridSearch<U>

java.lang.Object
es.uam.eps.ir.relison.grid.links.recommendation.rerankers.local.RandomRerankerGridSearch<U>
Type Parameters:
U - type of the users.
All Implemented Interfaces:
RerankerGridSearch<U>

public class RandomRerankerGridSearch<U>
extends java.lang.Object
implements RerankerGridSearch<U>
Grid search for a random reranker.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String LAMBDA
    Identifier for the parameter that takes the trade-off between relevance and diversity.
  • Constructor Summary

    Constructors 
    Constructor Description
    RandomRerankerGridSearch()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​GlobalRerankerFunction<U>> grid​(Grid grid)
    Obtains the different reranking approaches given a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<GlobalReranker<U,​U>>> grid​(Grid grid, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
    Obtains the different reranking approaches given a grid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LAMBDA

      private static final java.lang.String LAMBDA
      Identifier for the parameter that takes the trade-off between relevance and diversity.
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • grid

      public java.util.Map<java.lang.String,​java.util.function.Supplier<GlobalReranker<U,​U>>> grid​(Grid grid, int cutoff, java.util.function.Supplier<Normalizer<U>> norm, Graph<U> graph, Communities<U> comms)
      Description copied from interface: RerankerGridSearch
      Obtains the different reranking approaches given a grid.
      Specified by:
      grid in interface RerankerGridSearch<U>
      Parameters:
      grid - the parameter grid of the algorithm.
      cutoff - the size of the definitive ranking.
      norm - suppliers for the normalization scheme.
      graph - the training graph.
      comms - the community partition for the training graph.
      Returns:
      a map containing suppliers for the different configurations of the reranking approach.
    • grid

      public java.util.Map<java.lang.String,​GlobalRerankerFunction<U>> grid​(Grid grid)
      Description copied from interface: RerankerGridSearch
      Obtains the different reranking approaches given a grid.
      Specified by:
      grid in interface RerankerGridSearch<U>
      Parameters:
      grid - the parameter grid for the algorithm.
      Returns:
      a map containing suppliers for the different configurations of the reranking approach.