SuperPixelDataset
¶
SuperPixelDataset(
name: SUPERPIXEL_NAMES,
split: SUPERPIXEL_SPLITS,
use_features: bool = False,
base_dir: Optional[str] = None,
)
Bases: Dataset
MNIST and CIFAR10 superpixel datasets for graph classification tasks converted fromt the original MINST and CIFAR10 images.
The datasets were introduced in http://arxiv.org/abs/2003.00982.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
SUPERPIXEL_NAMES
|
name of the selected dataset |
required |
split
|
SUPERPIXEL_SPLITS
|
split of the dataset to load |
required |
use_features
|
bool
|
if True, the adjacency matrix is computed from superpixels locations and features. If False, only from superpixels locations. Defaults to False. |
False
|
base_dir
|
Optional[str]
|
directory where to store the datasets |
None
|
Source code in mlx_graphs/datasets/superpixel.py
from mlx_graphs.datasets import SuperPixelDataset · mlx_graphs/datasets/superpixel.py