MNIST

object MNIST(source)

Common entry points for obtaining MNIST datasets across platforms.

Provides a tiny factory to get the platform-specific MNISTLoader and convenience suspend functions to download and parse the train/test sets.

Functions

Link copied to clipboard
fun loader(config: MNISTLoaderConfig = MNISTLoaderConfig()): MNISTLoader

Create a platform-specific MNISTLoader using the provided config.

Link copied to clipboard
suspend fun loadTest(config: MNISTLoaderConfig = MNISTLoaderConfig()): MNISTDataset

Download (with caching if supported) and return the MNIST test dataset.

Link copied to clipboard
suspend fun loadTrain(config: MNISTLoaderConfig = MNISTLoaderConfig()): MNISTDataset

Download (with caching if supported) and return the MNIST training dataset.