GraphTUDataset(root, name, transform=None, pre_transform=None, pre_filter=None)
Bases: InMemoryDataset
TUGraph Dataset loader for graph-based analysis.
| Parameters: |
|
|---|
Notes
Dataset Structure:
- Collection of graphs
- Each graph has its own structure and features
- Supports various graph classification tasks
- Random shuffling for better training
processed_file_names
property
Names of processed data files.
| Returns: |
|
|---|
Notes
Processed files:
- data.pt: Contains processed PyTorch Geometric data objects
raw_file_names
property
Names of required raw files.
| Returns: |
|
|---|
Notes
Required files:
- .pkl: Pickle file containing list of graph data objects
download()
Download raw data files.
Notes
Empty implementation - data should be manually placed in raw directory
process()
Process raw data into PyTorch Geometric Data format.
Notes
Processing Steps:
-
Load pickle data:
- List of graph data objects
-
Random shuffling:
- Shuffle graphs for better training
-
Apply pre-transform:
- Transform each graph if specified
-
Collate graphs:
- Combine into single data object
-
Save processed data
Features:
- Multiple graph handling
- Random shuffling
- Optional pre-transform support
- Batch processing support