Class Reranking
java.lang.Object
es.uam.eps.ir.relison.examples.links.recommendation.Reranking
public class Reranking
extends java.lang.Object
Program for applying a given reranking algorithm to the outcome of a contact recommendation algorithm.
-
Constructor Details
-
Reranking
public Reranking()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionGenerates rerankers.- Parameters:
args
- Execution arguments:- Train: Route to the file containing the training graph.
- Test: Route to the file containing the test links.
- Multigraph: true if the network allows multiple edges, false otherwise.
- Directed: true if the network is directed, false otherwise.
- Weighted: true if the network is weighted, false otherwise.
- Selfloops: true if the network allows self-loops, false otherwise.
- ReadTypes: true if we have to read the edge types from the file, false otherwise.
- Grid: File containing the configuration for rerankers and evaluation metrics.
- Output directory: Directory in which to store the recommendations and the output file.
- Cutoff: Number of recommended users to return
- Max. length: the number of recommended users to consider.
- Optional arguments:
- -reciprocal value: true if we allowed the recommendation of reciprocal links, false otherwise (by default, false)
- -distance max directed: if we wanted to limit the maximum distance from the target user to the recommended ones. max indicates the distance value whereas directed indicates if we measure the distance over a directed (true) or undirected graph (false). By default, distance is not limited.
- -feat-data file index: if we want to compute feature-dependant metrics, this contains the feature information. File indicates the route to the file, whereas index is true if we have to read the features from an inverted index.
- Throws:
java.io.IOException
- if something fails while reading / writing.
-