Giter Site home page Giter Site logo

goleey / acrossnetworkembeddingsynthetic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colall/ione

1.0 2.0 0.0 24 KB

Source Code and Synthetic data for IJCAI 2016 paper "Aligning Users Across Social Networks Using Network Embedding"

Roff 0.09% Java 99.91%

acrossnetworkembeddingsynthetic's Introduction

AcrossNetworkEmbedding

Source Code and Synthetic data for IJCAI 2016 paper "Aligning Users Across Social Networks Using Network Embedding"

Note that as we are not the dataset owners, it is the across network embedding code with Synthetic dataset. If you can ask for the dataset permission of the author of paper IJCAI 15 paper "Integrated Anchor and Social Link Predictions across Partially Aligned Social Networks", we can share a complete version with all pre-preparation data.

When running the code, firstly check the Vars.java to make sure that the path of the data is correct. New two folds which are named as "embeddings" in foursquare fold and twitter fold.

Description of Data directory

AcrossNetworkEmbeddingData

	foursquare:
	
		following: the relation file, "1  2" means user 1 is the follower of user 2.  			   			
		following.reverse: the reverse relation file, for model which considers only one direction context. ONE model.
		
	twitter:
	
		the same as the foursquare fold
		
	twitter_foursquare_groundtruth:
	
		groundtruth: the groundtruth for our experiment, the anchor users between twitter and foursquare. 
		Note that pls make the anchors as the *same* id during the pre-preparation, 
		although the testing anchors will have the same id, 
		they will *not* take part in the training progress as they are not contained in the groundtruth.x.foldtrain.train file.	
		
		groundtruth.x.foldtrain.train, the traning anchors, which are the 0.x of all the anchors.
		
		groundtruth.x.foldtrain.test,  the testing anchors, which are the 1-0.x of all the anchors.
		
		groundtruth.test.linkp.x, the soft constraint file, which is predicted by a classifier. Only for the IONES model. Where x is the imbalance ratio of training classifier

There are four models of our paper, INE, ONE , IONE and IONE-S

For the INE and ONE, run the INE.java. If you run the INE model, just use "test.Train(10000000, "", 100);", for ONE model, modify the code as "test.Train(10000000, ".reverse", 100);".

For the IONE, run the IONE.java.

For the IONES, run the IONES.java

If you want to test the performance of the models with different interops, add the postfix to the Train function. For example, "test.Train(10000000, ".0.1", 100);".

All the embeddings in the embedding directory of foursquare and twitter.

The getPrecision.java is used for p@1-p@30 calculation of our model。

Feel free to contact me (Liu Li [email protected]) when you have any problems about the paper or the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.