pygip.datasets package¶
Submodules¶
pygip.datasets.datasets module¶
- class pygip.datasets.datasets.CoauthorPhysics(api_type='dgl', path='./data')[source]¶
Bases:
Dataset
- class pygip.datasets.datasets.Dataset(api_type='dgl', path='./data')[source]¶
Bases:
object
- _generate_masks_by_classes(num_class_samples=100, val_count=500, test_count=1000, seed=42)[source]¶
For Amazon and Coauthor datasets: - train: num_class_samples per class - val: val_count nodes from remaining - test: test_count nodes from remaining after val Works for both DGL and PyG graphs via self.graph_data
Module contents¶
- class pygip.datasets.Dataset(api_type='dgl', path='./data')[source]¶
Bases:
object
- _generate_masks_by_classes(num_class_samples=100, val_count=500, test_count=1000, seed=42)[source]¶
For Amazon and Coauthor datasets: - train: num_class_samples per class - val: val_count nodes from remaining - test: test_count nodes from remaining after val Works for both DGL and PyG graphs via self.graph_data