https://github.com/lucacappelletti94/right_laplacian_node2vec
Experiments evaluating the performance of Right Laplacian weighting in Node2Vec sampling.
https://github.com/lucacappelletti94/right_laplacian_node2vec
Last synced: 11 months ago
JSON representation
Experiments evaluating the performance of Right Laplacian weighting in Node2Vec sampling.
- Host: GitHub
- URL: https://github.com/lucacappelletti94/right_laplacian_node2vec
- Owner: LucaCappelletti94
- License: mit
- Created: 2022-04-26T12:20:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T13:25:43.000Z (almost 3 years ago)
- Last Synced: 2025-02-08T13:13:49.159Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 14.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Degree Normalization Node2Vec
Experiments evaluating the performance of Degree Normalization weighting in Node2Vec sampling.
## Running the experiments
To run the experiments, you need to clone the repository, install the dependencies and execute the `run.py` python script.
### Clone the repository
To clone the repository run:
```bash
git clone https://github.com/LucaCappelletti94/right_laplacian_node2vec
```
### Installing the dependencies
After having cloned the repository, navigate in the directory and to install the dependecies, just run:
```bash
pip install pip -U
pip install -r requirements.txt
```
### Running the experiment
To retrieve the required datasets and run the experiment, execute the following command from your python shell:
```bash
python3 run.py
```
The runtime on a normal desktop computer is about 1-2 days.
All of our results are available in the [`right_laplacian_experiments.csv` document here](https://github.com/LucaCappelletti94/right_laplacian_node2vec/blob/main/right_laplacian_experiments.csv).
### Visualizing the results
The barplots results can be visualized by running the snipped in the [visualization jupyter notebook](https://github.com/LucaCappelletti94/right_laplacian_node2vec/blob/main/notebooks/Barplots%20visualization.ipynb):
```python
import pandas as pd
from barplots import barplots
_ = barplots(
pd.read_csv("right_laplacian_experiments.csv"),
groupby=["evaluation_type", "normalization_name", "unbalance"],
)
```