Class Prediction<U>

java.lang.Object
es.uam.eps.ir.relison.links.linkprediction.Prediction<U>
Type Parameters:
U - type of the users.

public class Prediction<U>
extends java.lang.Object
The result of applying a link prediction algorithm.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> ranking
    The list of links, sorted by descending score.
  • Constructor Summary

    Constructors 
    Constructor Description
    Prediction​(java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> ranking)
    Constructs the prediction.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> getPrediction()
    Obtains the complete prediction list.
    es.uam.eps.ir.ranksys.core.Recommendation<U,​U> getPrediction​(U u)
    Obtains the prediction for a single user.

    Methods inherited from class java.lang.Object

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

    • ranking

      private final java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> ranking
      The list of links, sorted by descending score.
  • Constructor Details

    • Prediction

      public Prediction​(java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> ranking)
      Constructs the prediction.
      Parameters:
      ranking - a list of links sorted by descending score.
  • Method Details

    • getPrediction

      public java.util.List<org.ranksys.core.util.tuples.Tuple2od<Pair<U>>> getPrediction()
      Obtains the complete prediction list.
      Returns:
      the list of predicted links.
    • getPrediction

      public es.uam.eps.ir.ranksys.core.Recommendation<U,​U> getPrediction​(U u)
      Obtains the prediction for a single user.
      Parameters:
      u - the user.
      Returns:
      the prediction for a single user.