dgl.data¶
The dgl.data
package contains datasets hosted by DGL and also utilities
for downloading, processing, saving and loading data from external resources.
Base Class¶
The basic DGL dataset for creating graph datasets. |
|
Dataset class that loads and parses graph data from CSV files. |
Node Prediction Datasets¶
Datasets for node classification/regression tasks
Stanford Sentiment Treebank dataset. |
|
Karate Club dataset for Node Classification |
|
Cora citation network dataset. |
|
Citeseer citation network dataset. |
|
Pubmed citation network dataset. |
|
CORA-Full dataset for node classification task. |
|
AIFB dataset for node classification task |
|
MUTAG dataset for node classification task |
|
BGS dataset for node classification task |
|
AM dataset. |
|
‘Computer’ part of the AmazonCoBuy dataset for node classification task. |
|
AmazonCoBuy dataset for node classification task. |
|
‘Computer Science (CS)’ part of the Coauthor dataset for node classification task. |
|
‘Physics’ part of the Coauthor dataset for node classification task. |
|
Protein-Protein Interaction dataset for inductive node classification |
|
Reddit dataset for community detection (node classification) |
|
Symmetric Stochastic Block Model Mixture |
|
Fraud node prediction dataset. |
|
Fraud Yelp Dataset |
|
Fraud Amazon Dataset |
|
BA-SHAPES dataset from GNNExplainer: Generating Explanations for Graph Neural Networks |
|
BA-COMMUNITY dataset from GNNExplainer: Generating Explanations for Graph Neural Networks |
|
TREE-CYCLES dataset from GNNExplainer: Generating Explanations for Graph Neural Networks |
|
TREE-GRIDS dataset from GNNExplainer: Generating Explanations for Graph Neural Networks |
|
Wiki-CS is a Wikipedia-based dataset for node classification from Wiki-CS: A Wikipedia-Based Benchmark for Graph Neural Networks |
|
Flickr dataset for node classification from GraphSAINT: Graph Sampling Based Inductive Learning Method |
|
Yelp dataset for node classification from GraphSAINT: Graph Sampling Based Inductive Learning Method |
Edge Prediction Datasets¶
Datasets for edge classification/regression and link prediction
FB15k237 link prediction dataset. |
|
FB15k link prediction dataset. |
|
WN18 link prediction dataset. |
|
BitcoinOTC dataset for fraud detection |
|
ICEWS18 dataset for temporal graph |
|
GDELT dataset for event-based temporal graph |
Graph Prediction Datasets¶
Datasets for graph classification/regression tasks
QM7b dataset for graph property prediction (regression) |
|
QM9 dataset for graph property prediction (regression) |
|
QM9Edge dataset for graph property prediction (regression) |
|
The synthetic graph classification dataset class. |
|
TUDataset contains lots of graph kernel datasets for graph classification. |
|
LegacyTUDataset contains lots of graph kernel datasets for graph classification. |
|
Dataset Class for How Powerful Are Graph Neural Networks?. |
|
Fake News Graph Classification dataset. |
|
BA-2motifs dataset from Parameterized Explainer for Graph Neural Network |
Dataset adapters¶
Repurpose a dataset for a standard semi-supervised transductive node prediction task. |
|
Repurpose a dataset for link prediction task. |
|
Repurpose a dataset for standard graph property prediction task. |
Utilities¶
Get the absolute path to the download directory. |
|
Download a given URL. |
|
Check whether the sha1 hash of the file content matches the expected hash. |
|
Extract archive file. |
|
Split dataset into training, validation and test set. |
|
Load label dict from file |
|
Save dataset related information into disk. |
|
Load dataset related information from disk. |
|
Split the given dataset into training, validation and test sets for transductive node predction task. |
|
Subset of a dataset at specified indices |