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.4.tar.gz (1.4 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.4-py3-none-any.whl (190.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openfgl_lib-1.0.4.tar.gz
  • Upload date:
  • Size: 1.4 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.4.tar.gz
Algorithm Hash digest
SHA256 06ca285e51d94856146dcbb68d41ac00c5ac6c0c4d9b0506d39545b8e5198f02
MD5 c6230e1a91b2c53db7c6034d40dd913d
BLAKE2b-256 c4de76e85236ad8ceb3b1f26e8680a6d91e6e5f2db4cd4bae36e6c1c07b7ba52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openfgl_lib-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 190.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56c106e9dc1384418447d5e6a2d0f00f595d66e01b88a191c956372d9127921c
MD5 8103596df729b028a9eae83092f0e203
BLAKE2b-256 f92872c47ad26535b801e021a32479a3e90be7647c38d91d3d9180629a8b0a58

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