SvhnDataLoader<T>

Models & Types · AiDotNet.Data.Vision.Benchmarks

Loads the SVHN (Street View House Numbers) Format-2 dataset (Netzer et al. 2011) — 32×32 RGB digits.

Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → SvhnDataLoader<T>

How It Works

Expects:

Each .mat file contains X (uint8 array shaped [32, 32, 3, N], column- major) and y (int8 array shaped [N, 1]) with labels 1..10 (10 = digit 0). Auto-downloads from Stanford’s canonical mirror.

Constructors

Constructor Summary
SvhnDataLoader(SvhnDataLoaderOptions options)

Properties

Property Summary
int FeatureCount { get; }
int OutputDimension { get; }
int TotalCount { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed)