Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dataset] Contribute IGB-Homo dataset to node_classification.py #7717

Merged
merged 17 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions examples/graphbolt/node_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
└───> All nodes set inference & Test set evaluation
"""

BowenYao18 marked this conversation as resolved.
Show resolved Hide resolved
import argparse
import time

Expand Down Expand Up @@ -363,9 +364,17 @@ def parse_args():
"--dataset",
type=str,
default="ogbn-products",
choices=["ogbn-arxiv", "ogbn-products", "ogbn-papers100M"],
choices=[
"ogbn-arxiv",
"ogbn-products",
"ogbn-papers100M",
"igb-hom-tiny",
"igb-hom-small",
"igb-hom-medium",
],
help="The dataset we can use for node classification example. Currently"
" ogbn-products, ogbn-arxiv, ogbn-papers100M datasets are supported.",
" ogbn-products, ogbn-arxiv, ogbn-papers100M and"
" igb-hom-[tiny|small|medium] datasets are supported.",
)
parser.add_argument(
"--mode",
Expand Down
16 changes: 16 additions & 0 deletions python/dgl/graphbolt/impl/ondisk_dataset.py
mfbalin marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,16 @@
.. note::
Reverse edges are added to the original graph.

**igb-hom-[tiny|small|medium]**
The igb-hom-[tiny|small|medium] dataset is a homogeneous citation network,

Check warning on line 983 in python/dgl/graphbolt/impl/ondisk_dataset.py

View workflow job for this annotation

GitHub Actions / lintrunner

UFMT format

Run `lintrunner -a` to apply this patch.
which is designed for developers to train and evaluate GNN models with
high fidelity. See more details in `igb-hom-[tiny|small|medium]
<https://mlcommons.org/2024/06/gnn-for-mlperf-training-v4/>`_.
BowenYao18 marked this conversation as resolved.
Show resolved Hide resolved

.. note::
Self edges are added to the original graph.
Node features are stored as float32.

Parameters
----------
name : str
Expand All @@ -1004,12 +1014,18 @@
"ogbn-products-seeds",
"ogbn-arxiv",
"ogbn-arxiv-seeds",
"igb-hom-tiny",
"igb-hom-tiny-seeds",
"igb-hom-small",
"igb-hom-small-seeds",
]
_large_datasets = [
"ogb-lsc-mag240m",
"ogb-lsc-mag240m-seeds",
"ogbn-papers100M",
"ogbn-papers100M-seeds",
"igb-hom-medium",
"igb-hom-medium-seeds",
]
_all_datasets = _datasets + _large_datasets

Expand Down
Loading