MnistDataLoaderOptions
Options & Configuration · AiDotNet.Data.Vision.Benchmarks
Configuration options for the MNIST data loader.
Constructors
| Constructor | Summary |
|---|---|
MnistDataLoaderOptions() |
Properties
| Property | Summary |
|---|---|
DatasetSplit Split { get; set; } |
Dataset split to load. |
ImageTensorLayout Layout { get; set; } |
Axis ordering for the image tensor. |
bool AutoDownload { get; set; } |
Automatically download the dataset if not present. |
bool Flatten { get; set; } |
Whether to flatten images to 1D vectors (784) instead of the spatial layout ([B, 28, 28, 1] NHWC or [B, 1, 28, 28] NCHW). |
bool Normalize { get; set; } |
Whether to normalize pixel values to [0, 1]. |
int? MaxSamples { get; set; } |
Optional maximum number of samples to load. |
string DataPath { get; set; } |
Root data path. |