Welcome to the UPF Digital Repository

Convex inference for community discovery in signed networks (European Parliament Voting Dataset)

Show simple item record

dc.contributor.author Santamaría, Guillermo
dc.contributor.author Gómez, Vicenç
dc.date.accessioned 2017-04-11T10:49:47Z
dc.date.available 2017-04-11T10:49:47Z
dc.date.issued 2017
dc.identifier.citation Santamaría G, Gómez V. Convex inference for community discovery in signed networks (European Parliament Voting Dataset) [dataset]. Repositori Digital de la UPF: Barcelona;2017 [cited 2017 Apr 11]. Available from: http://hdl.handle.net/10230/30815
dc.identifier.uri http://hdl.handle.net/10230/30815
dc.description This repository contains the necessary tools to reproduce the experiments of the paper: G. Santatmaría, V. Gómez (2015) Convex inference for community discovery in signed networks. NIPS 2015 Workshop: Networks in the Social and Information Sciences ------The method first maps the MAP problem on the Potts model as a hinge-loss minimization problem (see the paper for details). To run the code you need to install psl (included here) and if you want to additionally compare with other inference methods, such as max prod belief propagation or junction tree, you need to install the libDAI library (also included here) --------The directory europeanCongressData/ (~500 Mb) contains the votings of the EU parlament, including 300 votings events from the actual term, from May 2014 to June 2015, obtained from http://www.votewatch.eu/ * data/ : json files with the european votes * network.net : signed network built from the votes * political_parties.txt : "ground truth" party * community_results/ : results for different number of communities and initial vertices * dataComputations.py : used to build the signed network * dataProcessing.py : used to build the signed network We would appreciate if you cite the paper after using the data or the code. --------DEPENDENCIES-------- The code has been tested in Linux Mint 18.1 Serena and Ubuntu 14.04 - For PSL library, you need to have java 1.8 you may need to export JAVAHOME='/usr/lib/jvm/YOURJAVA1.8FOLDER' maven 3.x - For libDAI you will need: make doxygen graphviz libboost-dev libboost-graph-dev libboost-program-options-dev libboost-test-dev libgmp-dev cimg-dev libgmp-dev --------CODE TO RUN THE FOLLOWING EXPERIMENTS:-------- Compare the performance in terms of structural balance of max prod bp and our method against an exact inference method (junction tree), with different number of communities --------INSTALL-------- To install the experiments you have to follow the next steps: 1 Build the libdai library by doing: make -B on the folder (libdai) 2 Generate the class path of the groovy project: mvn clean install mvn dependency:build-classpath-Dmdep.outputFile=classpath.out on the psl root folder (You need to have java 1.8 and maven 3.x installed) 3 Grant exec permissions to the run.sh script --------Options-------- The main python file to run the experiments is evaluatebalanceon_sn.py. It accepts the following parameters: 1 (Int) Nodes of the graph. In order to run the junction tree we recommend to set this paremeter to 150 or less 2 (Int) The number of underlying communities 3 (Float) The maximum amount of unbalance for the experiments. We recommend 0.45 4 (Bool) Whether to use an heuristic to find the initial node for each community or to use directly random nodes from the ground truth communities. This heuristic looks alternatively for the nodes with highest negative degree and highest positive degree. For the case when the number of communities is equal to 2 (Ising Model), the heuristic is used by default. An example of execution would be: python evaluate_balance_on_sn.py 120 3 0.45 True True The results of the experiments are save in the folder results/ Scripts The main script of the hinge-loss method can be found in the folder psl/psl-example/src/main/java/edu/umd/cs/example/PottsCommunities.groovy --------For further questions, please contact vicen.gomez@upf.edu
dc.language.iso eng
dc.relation Publicació relacionada: Santamaría G, Gómez V. Convex inference for community discovery in signed networks. Paper presented at: NIPS 2015 Workshop: Networks in the Social and Information Sciences; 2015 December 12; Montreal, Canada. http://hdl.handle.net/10230/32243
dc.relation.isreferencedby http://hdl.handle.net/10230/32243
dc.rights Aquest dataset està subjecte a una llicència Creative Commons
dc.rights.uri https://creativecommons.org/licenses/by/4.0/
dc.title Convex inference for community discovery in signed networks (European Parliament Voting Dataset)
dc.type info:eu-repo/semantics/other
dc.type Dataset
dc.identifier.doi https://doi.org/10.34810/data480
dc.subject.keyword Signed networks
dc.subject.keyword Community discovering
dc.subject.keyword Social networks
dc.subject.keyword Potts model
dc.subject.keyword European Parliament Voting
dc.relation.projectID info:eu-repo/grantAgreement/EC/FP7/600387
dc.rights.accessRights info:eu-repo/semantics/openAccess

Icon

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Advanced Search

Browse

My Account

Statistics

In collaboration with Compliant to Partaking