incerto.data.SVHN#

class incerto.data.SVHN(root='./data', val_split=0.1, seed=42, normalize=True)[source]#

Bases: VisionDataset

SVHN (Street View House Numbers) dataset.

32x32 color images of house numbers. 73,257 training + 26,032 test images.

Parameters:
__init__(root='./data', val_split=0.1, seed=42, normalize=True)[source]#

Initialize vision dataset.

Parameters:
  • root (str | Path) – Root directory for dataset storage

  • val_split (float) – Fraction of training data to use for validation

  • seed (int) – Random seed for reproducible splits

  • normalize (bool)

Methods

__init__([root, val_split, seed, normalize])

Initialize vision dataset.

get_datasets()

Get train, validation, and test datasets.

get_transforms([train])

Get data transformations.

__init__(root='./data', val_split=0.1, seed=42, normalize=True)[source]#

Initialize vision dataset.

Parameters:
  • root (str | Path) – Root directory for dataset storage

  • val_split (float) – Fraction of training data to use for validation

  • seed (int) – Random seed for reproducible splits

  • normalize (bool)

get_transforms(train=False)[source]#

Get data transformations.

Parameters:

train (bool)

Return type:

Compose

get_datasets()[source]#

Get train, validation, and test datasets.

Return type:

Tuple[Dataset, Dataset, Dataset]