Class DiffusionEvaluation
java.lang.Object
es.uam.eps.ir.relison.examples.diffusion.DiffusionEvaluation
public class DiffusionEvaluation
extends java.lang.Object
Given the outcome of a simulation procedure, measures its different properties and distributions.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DiffusionEvaluation()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
Evaluates a group of simulations
-
Field Details
-
REC
private static final java.lang.String REC- See Also:
- Constant Field Values
-
USERFEATS
private static final java.lang.String USERFEATS- See Also:
- Constant Field Values
-
INFOFEATS
private static final java.lang.String INFOFEATS- See Also:
- Constant Field Values
-
N
private static final java.lang.String N- See Also:
- Constant Field Values
-
TESTGRAPH
private static final java.lang.String TESTGRAPH- See Also:
- Constant Field Values
-
REALPROP
private static final java.lang.String REALPROP- See Also:
- Constant Field Values
-
-
Constructor Details
-
DiffusionEvaluation
public DiffusionEvaluation()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionEvaluates a group of simulations- Parameters:
args
- Execution parameters- configuration: a YAML file containing the evaluation metrics and distributions.
- graphFile: path to a file containing the graph.
- multigraph: true if the graph has multiple edges between users, false otherwise.
- directed: true if the graph is directed, false otherwise.
- weighted: true if the graph is weighted, false otherwise.
- selfLoops: true if the graph accepts selfloops, false otherwise.
- readTypes: true if the graph types have to be read from the file, false otherwise.
- uIndexPath: route of a file containing the list of users.
- iIndexPath: route of a file containing the list of identifiers of the different information pieces.
- inputFolder: directory containing the simulations to evaluate.
- outputFolder: directory to store the evaluation results.
- infoFile: file containing the relation between users and information pieces.
- Optional arguments:
- -rec recFile: path to a recommendation file, whose edges will be added to the network.
- -n n: the number of links (per user) to add from the recommendation (if any). By default: 10
- -test-graph file: a folder to a network file containing additional edges (and shall be used for filtering the recommended edges to add).
- -userfeats file1,file2,...,fileN: a comma-separated list of files containing the features for the users in the network (e.g. communities).
- -infofeats file1,file2,...,fileN: a comma-separated list of files containing the features for the information pieces (e.g. hashtags).
- -realprop file: a file indicating which information pieces have been repropagated by users in another information diffusion process.
- Throws:
java.io.IOException
- if something fails while reading / writing data
-