ggfm.data¶
Graph¶
The Heterogeneous Graph Transformer (HGT) operator from the "Heterogeneous Graph Transformer" paper. |
|
Graph Preprocessing¶
Load Graph object. |
|
"GPT-GNN: Generative Pre-Training of Graph Neural Networks" paper. |
|
Statistically analyze the type_degin_ids and graph_node_type of graphs. |
|
Construct dgl.heterograph from ggfm.data.graph. |
|
Language model generates node embeddings for words。 |
|
"GPT-GNN: Generative Pre-Training of Graph Neural Networks" paper. |
|
Main function to execute all dataset processing steps. |
|
Construct link.dat and node.dat. |
|
Construct graph_node_name.pkl for ggfm.data.graph. |
|
Metapath-based corpus construction. |
|
Construct link.dat and node.dat. |
|
Read a npz file. |
|
Extracts a zip archive to a specific folder. |
|
Downloads the content of an URL to a specific folder. |
|
Downloads the content of a Google Drive ID to a specific folder. |
|
Print argments. |
|
Open pickle file. |
|
Open txt file. |
|
Save pickle file. |
|
Save txt file. |
|
Split the dataset into train, validation, and test sets. |
|