Class SimpleLinkPredictionFormat<U>
java.lang.Object
es.uam.eps.ir.relison.links.linkprediction.io.TuplesLinkPredictionFormat<U>
es.uam.eps.ir.relison.links.linkprediction.io.SimpleLinkPredictionFormat<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
LinkPredictionFormat<U>
public class SimpleLinkPredictionFormat<U> extends TuplesLinkPredictionFormat<U>
Simple format for link prediction: tab-separated user-user-score triplets, by decreasing order of score.
-
Nested Class Summary
Nested classes/interfaces inherited from class es.uam.eps.ir.relison.links.linkprediction.io.TuplesLinkPredictionFormat
TuplesLinkPredictionFormat.Reader, TuplesLinkPredictionFormat.Writer
-
Constructor Summary
Constructors Constructor Description SimpleLinkPredictionFormat(org.ranksys.formats.parsing.Parser<U> uParser)
Constructor.SimpleLinkPredictionFormat(org.ranksys.formats.parsing.Parser<U> uParser, boolean sortByDecreasingScore)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.links.linkprediction.io.TuplesLinkPredictionFormat
getReader, getWriter
-
Constructor Details
-
SimpleLinkPredictionFormat
Constructor.- Parameters:
uParser
- a parser for reading the users.
-
SimpleLinkPredictionFormat
public SimpleLinkPredictionFormat(org.ranksys.formats.parsing.Parser<U> uParser, boolean sortByDecreasingScore)Constructor.- Parameters:
uParser
- a parser for reading the users.sortByDecreasingScore
- read the users in decreasing score?
-