mooon

Graph data augmentation library


Keywords
torch_geometric, pytorch, benchmark, geometric-adversarial-learning, graph-neural-networks, graph-data-augmentation, pytorch-geometric
License
MIT
Install
pip install mooon==0.0.1b0

Documentation

Mooon: Graph Data Augmentation Library

banner

Python pytorch license

δΊΊζœ‰ζ‚²ζ¬’η¦»εˆοΌŒζœˆζœ‰ι˜΄ζ™΄εœ†ηΌΊγ€‚ β€”β€”β€”β€” θ‹θ½Όγ€Šζ°΄θ°ƒζ­Œε€΄γ€‹

Why "Mooon"?

Graph with data augmentations, is like the moon, now dark, now full.

Quick Tour

  • Functional API
from mooon import drop_edge

edge_index, edge_weight = drop_edge(edge_index, p=0.5)
edge_index, edge_weight = drop_edge(edge_index, edge_weight, p=0.5)
  • Module Layer
from mooon import DropEdge

drop_edge = DropEdge(p=0.5)
edge_index, edge_weight = drop_edge(edge_index)
edge_index, edge_weight = drop_edge(edge_index, edge_weight)

πŸš€ Installation

Please make sure you have installed PyTorch and PyTorch Geometric (PyG).

# Coming soon
pip install -U mooon

or

# Recommended
git clone https://github.com/EdisonLeeeee/Mooon.git && cd Mooon
pip install -e . --verbose

where -e means "editable" mode so you don't have to reinstall every time you make changes.

Roadmap

Note: this is an ongoing project, please feel free to contact me for collaboration.

  • Based on PyTorch
  • Support only PyG
  • High-level class and low-level functional API
  • Seamlessly integrated into existing code written by PyG