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
-
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.
-
Field Details
-
ranking
The list of links, sorted by descending score.
-
-
Constructor Details
-
Prediction
Constructs the prediction.- Parameters:
ranking- a list of links sorted by descending score.
-
-
Method Details
-
getPrediction
Obtains the complete prediction list.- Returns:
- the list of predicted links.
-
getPrediction
Obtains the prediction for a single user.- Parameters:
u- the user.- Returns:
- the prediction for a single user.
-