Algorithm library for federated graph learning.
Project description
Open Federated Graph Learning (OpenFGL)
OpenFGL is a comprehensive, user-friendly algorithm library, complemented by an integrated evaluation platform, designed specifically for researchers in the field of federated graph learning (FGL).
Paper • Highlights • Installation • Docs • Citation
Highlights
- 2 FGL Scenarios: Graph-FL and Subgraph-FL
- 10+ FGL Algorithms
- 34 FGL Datasets
- 12 GNN Models
- 5 Downstream Tasks
- Comprehensive FGL Data Property Analysis
Get Started
import openfgl.config as config
from openfgl.flcore.trainer import FGLTrainer
args = config.args
args.root = "your_data_root"
args.dataset = ["Cora"]
args.simulation_mode = "subgraph_fl_louvain"
args.num_clients = 10
if True:
args.fl_algorithm = "fedavg"
args.model = ["gcn"]
else:
args.fl_algorithm = "fedproto"
args.model = ["gcn", "gat", "sgc", "mlp", "graphsage"] # choose multiple gnn models for model heterogeneity setting.
args.metrics = ["accuracy"]
trainer = FGLTrainer(args)
trainer.train()
Citation
Please cite our paper (and the respective papers of the methods used) if you use this code in your own work:
@misc{li2024openfglcomprehensivebenchmarksfederated,
title={OpenFGL: A Comprehensive Benchmarks for Federated Graph Learning},
author={Xunkai Li and Yinlin Zhu and Boyang Pang and Guochen Yan and Yeyu Yan and Zening Li and Zhengyu Wu and Wentao Zhang and Rong-Hua Li and Guoren Wang},
year={2024},
eprint={2408.16288},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2408.16288},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openfgl_lib-1.0.6.tar.gz.
File metadata
- Download URL: openfgl_lib-1.0.6.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d04f61513deee5f1ed6d325a6b0c1f31c55bdf2bef2c36a97b77bdfad2c402
|
|
| MD5 |
bc2cbdf2db16da310a62e5a20149fd52
|
|
| BLAKE2b-256 |
95538b45d7fbf4f05b383876a26e3b8e33c030685dfce8770d38b30d88871ffe
|
File details
Details for the file openfgl_lib-1.0.6-py3-none-any.whl.
File metadata
- Download URL: openfgl_lib-1.0.6-py3-none-any.whl
- Upload date:
- Size: 190.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
500e6d3ff490ccf8db9741c7dece8f77d301fed0520c770818423a63c008c698
|
|
| MD5 |
bfd84650ee719eeacadcf8becee1d0e5
|
|
| BLAKE2b-256 |
457be6f88b72ebaac1fb23c92d15d41dab8df3d6bc7e21d777b943598c77eef5
|