Skip to main content

Algorithm library for federated graph learning.

Project description

1301717130101_ pic

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).

PaperHighlightsInstallationDocsCitation

Stars

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openfgl_lib-1.0.8.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openfgl_lib-1.0.8-py3-none-any.whl (190.7 kB view details)

Uploaded Python 3

File details

Details for the file openfgl_lib-1.0.8.tar.gz.

File metadata

  • Download URL: openfgl_lib-1.0.8.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

Hashes for openfgl_lib-1.0.8.tar.gz
Algorithm Hash digest
SHA256 1bae2218d78aeb01c9a7f3e48673082988c8c7582579594de72768a2c78963f1
MD5 c46305bee91acd178b946e2695b4f4ea
BLAKE2b-256 a07feaaff22d838967c12ed42989cc54fa7e993798efb1288bf56aaef51cd91b

See more details on using hashes here.

File details

Details for the file openfgl_lib-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: openfgl_lib-1.0.8-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

Hashes for openfgl_lib-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b2dce819b0ff59c370d8ed4ae8d860e32621d2f82fda786a83125464f517b5bc
MD5 e34ae5713acb6a316a095d8ff8d1a673
BLAKE2b-256 db51ca50a8acef025f86849d4eac4f8cfb5ecf474bac9c4b6499f85c57cee95a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page