torch_geometric.datasets.MNISTSuperpixels
- class MNISTSuperpixels(root: str, train: bool = True, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, pre_filter: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDatasetMNIST超像素数据集来自“使用混合模型CNN在图和流形上进行几何深度学习”论文,包含70,000个图,每个图有75个节点。 每个图都被标记为10个类别之一。
- Parameters:
root (str) – Root directory where the dataset should be saved.
train (bool, optional) – If
True, loads the training dataset, otherwise the test dataset. (default:True)transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before every access. (default:None)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before being saved to disk. (default:None)pre_filter (callable, optional) – A function that takes in an
torch_geometric.data.Dataobject and returns a boolean value, indicating whether the data object should be included in the final dataset. (default:None)force_reload (bool, optional) – Whether to re-process the dataset. (default:
False)
统计:
#图表
#节点
#edges
#特性
#classes
70,000
75
~1,393.0
1
10