Skip to main content

Graph data augmentation library

Project description

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

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

mooon-0.0.1b0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

mooon-0.0.1b0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file mooon-0.0.1b0.tar.gz.

File metadata

  • Download URL: mooon-0.0.1b0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mooon-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 a270acc1e61633ec403ce69da8bda49796b32a5d1890da73294b895090c21d07
MD5 cffdda7e70fe8e2c26be84e3af61cfc3
BLAKE2b-256 a1469eb2344ea8f751efcc6eeccf7639bd2f88097d1a0b8974cbd9a6d5e66b0b

See more details on using hashes here.

File details

Details for the file mooon-0.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: mooon-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mooon-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ef7e80c7de4a82dac84eaf47f3665d461ca6184bae35fe04624db15115f891
MD5 c562f8cd456a9fce3f0709d640009579
BLAKE2b-256 de81623e6131a3c387ecc99998532d6101821dacdf13a717658ce9f867b73e31

See more details on using hashes here.

Supported by

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