Online Node2Vec
This repository contains the code related to the research of Ferenc Béres, Róbert Pálovics, Domokos Miklós Kelen and András A. Benczúr.
Introduction
We propose two online node embedding models (StreamWalk and online second order similarity) for temporally evolving networks. Two nodes are required to be mapped close in the vector space whenever they lie on short paths formed by recent edges in the first model, and whenever the set of their recent neighbors is similar in the second model.
Please cite our paper if you use our work:
@Article{Béres2019,
author="B{\'e}res, Ferenc
and Kelen, Domokos M.
and P{\'a}lovics, R{\'o}bert
and Bencz{\'u}r, Andr{\'a}s A.",
title="Node embeddings in dynamic graphs",
journal="Applied Network Science",
year="2019",
volume="4",
number="64",
pages="25",
}
I presented a former version of our work at the 7th International Conference on Complex Networks and Their Applications that is availabe on this branch.
Data
US Open 2017 (UO17) and Roland-Garros 2017 (RG17) Twitter datasets were published in our previous work for the first time. Please cite this article if you use our data sets in your research:
@Article{Béres2018,
author="B{\'e}res, Ferenc
and P{\'a}lovics, R{\'o}bert
and Ol{\'a}h, Anna
and Bencz{\'u}r, Andr{\'a}s A.",
title="Temporal walk based centrality metric for graph streams",
journal="Applied Network Science",
year="2018",
volume="3",
number="32",
pages="26",
}
These Twitter datasets are available on the website of our research group. In order to process the data you need to install the twittertennis Python package. It will automatically download and prepare the datasets for you.
Install
python setup.py install
Usage
After installing every requirement execute the following script to run both node representation learning and evaluation for the similarity search task.
cd scripts
bash run.sh
The major steps in our pipeline are:
- Download and preprocess data
- Learning StreamWalk representations
- Learning Second order similarity representations
- Evaluate node embeddings for the similarity search supervised experiment
Metadata
Release files for online-node2vec 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| online_node2vec-0.1.1.tar.gz | 19.4 kB | Without provenance | Details for online_node2vec-0.1.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| online_node2vec-0.1.1-py3.7.egg | Legacy Egg format | - | - | Details for online_node2vec-0.1.1-py3.7.egg |
| online_node2vec-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for online_node2vec-0.1.1-py3-none-any.whl |
Total release size: 98.6 kB
Release files / online_node2vec-0.1.1.tar.gz
| Download URL | online_node2vec-0.1.1.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26cc364731fc6425fbfbacd65051a9ea0896b8eb434323cce040b7c7d15d7073
|
|
BLAKE2b-256 checksum How to use checksums |
2f28579b3472ea7ccaf2b38d62c723af0cc54231326cccd2ea08dcfbb36989b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
|
Release files / online_node2vec-0.1.1-py3.7.egg
| Download URL | online_node2vec-0.1.1-py3.7.egg |
|---|---|
| Size | 53.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a6e6bbaa43ff3277cd2cbe85b9007f49c29c8dfd0ca600e5002a447b219d7c6d
|
|
BLAKE2b-256 checksum How to use checksums |
407b78b2735fafd9a7b86809bef3560f8febeb945f0d1908d07be00e63ff738c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
|
Release files / online_node2vec-0.1.1-py3-none-any.whl
| Download URL | online_node2vec-0.1.1-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faddc7e2eb228c010d4c0acca1bb31519d4181a95647d6906987a8f8c5be176a
|
|
BLAKE2b-256 checksum How to use checksums |
a738c960d361a3f32b498792b63663a71a4a3e49cf4920cf5a30fd012cd2df9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
|
Security for online-node2vec 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.