File tree 2 files changed +28
-7
lines changed
examples/graphbolt/pyg/hetero
python/dgl/graphbolt/impl
2 files changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ def create_dataloader(
58
58
datapipe = datapipe .copy_to (device = device )
59
59
need_copy = False
60
60
61
+ node_feature_keys = {"paper" : ["feat" ], "author" : ["feat" ]}
61
62
if args .dataset == "ogb-lsc-mag240m" :
62
- node_feature_keys = {
63
- "paper" : ["feat" ],
64
- "author" : ["feat" ],
65
- "institution" : ["feat" ],
66
- }
63
+ node_feature_keys ["institution" ] = ["feat" ]
64
+ if "igb-het" in args .dataset :
65
+ node_feature_keys ["institute" ] = ["feat" ]
66
+ node_feature_keys ["fos" ] = ["feat" ]
67
67
# Fetch node features for the sampled subgraph.
68
68
datapipe = datapipe .fetch_feature (features , node_feature_keys )
69
69
@@ -335,8 +335,13 @@ def parse_args():
335
335
"--dataset" ,
336
336
type = str ,
337
337
default = "ogb-lsc-mag240m" ,
338
- choices = ["ogb-lsc-mag240m" ],
339
- help = "Dataset name. Possible values: ogb-lsc-mag240m" ,
338
+ choices = [
339
+ "ogb-lsc-mag240m" ,
340
+ "igb-het-tiny" ,
341
+ "igb-het-small" ,
342
+ "igb-het-medium" ,
343
+ ],
344
+ help = "Dataset name. Possible values: ogb-lsc-mag240m, igb-het-[tiny|small|medium]." ,
340
345
)
341
346
parser .add_argument (
342
347
"--fanout" ,
Original file line number Diff line number Diff line change @@ -990,6 +990,16 @@ class BuiltinDataset(OnDiskDataset):
990
990
Self edges are added to the original graph.
991
991
Node features are stored as float32.
992
992
993
+ **igb-het-[tiny|small|medium]**
994
+ The igb-hom-[tiny|small|medium] dataset is a heterogeneous citation network,
995
+ which is designed for developers to train and evaluate GNN models with
996
+ high fidelity. See more details in `igb-het-[tiny|small|medium]
997
+ <https://github.com/IllinoisGraphBenchmark/IGB-Datasets>`_.
998
+
999
+ .. note::
1000
+ Four Reverse edge types are added to the original graph.
1001
+ Node features are stored as float32.
1002
+
993
1003
Parameters
994
1004
----------
995
1005
name : str
@@ -1019,6 +1029,10 @@ class BuiltinDataset(OnDiskDataset):
1019
1029
"igb-hom-tiny-seeds" ,
1020
1030
"igb-hom-small" ,
1021
1031
"igb-hom-small-seeds" ,
1032
+ "igb-het-tiny" ,
1033
+ "igb-het-tiny-seeds" ,
1034
+ "igb-het-small" ,
1035
+ "igb-het-small-seeds" ,
1022
1036
]
1023
1037
_large_datasets = [
1024
1038
"ogb-lsc-mag240m" ,
@@ -1031,6 +1045,8 @@ class BuiltinDataset(OnDiskDataset):
1031
1045
"igb-hom-large-seeds" ,
1032
1046
"igb-hom" ,
1033
1047
"igb-hom-seeds" ,
1048
+ "igb-het-medium" ,
1049
+ "igb-het-medium-seeds" ,
1034
1050
]
1035
1051
_all_datasets = _datasets + _large_datasets
1036
1052
You can’t perform that action at this time.
0 commit comments