graphstorm.dataloading.dataset
GraphStorm dataset provides one unified dataset class, i.e.,
GSgnnData, for all graph machine learning tasks. Users can build aGSgnnDataobject by giving the path of the JSON file created by the GraphStorm Graph Construction operations. TheGSgnnDatawill load the related graph artifacts specified in the JSON file. It provides a set of APIs for users to extract information of the graph data for model training and inference.
The GraphStorm data class. |
graphstorm.dataloading.dataloading
GraphStorm dataloading module includes a set of different DataLoaders for different graph machine learning tasks.
If users would like to customize DataLoaders, please extend those dataloader base classes in the Base DataLoaders section and customize their abstract functions.
Base DataLoaders
The base dataloader class for node tasks. |
|
The base dataloader class for edge tasks. |
|
The base dataloader class for link prediction tasks. |
DataLoaders
Mini-batch dataloader for node tasks. |
|
Semi-supervised mini-batch dataloader for node tasks. |
|
The mini-batch dataloader for edge prediction tasks. |
|
Mini-batch dataloader for link prediction. |
|
Mini-batch dataloader for link prediction validation and test. |
|
Mini-batch dataloader for link prediction validation and test with predefined negatives. |