:py:mod:`kosmos.ml.datasets.mnist_dataset` ========================================== .. py:module:: kosmos.ml.datasets.mnist_dataset Classes ------- .. py:class:: MNISTDataset(*, min_max_scaler: bool = True) Bases: :py:class:`kosmos.ml.datasets.dataset.SLDataset` MNIST handwritten digits dataset for multiclass classification. .. admonition:: Notes - Number of instances: 70,000 (60,000 train + 10,000 test) - Number of features: 784 numeric (28x28 pixel images, flattened) - Classes: 10 (digits 0-9, roughly balanced) .. admonition:: References - OpenML — MNIST dataset: https://www.openml.org/d/554 Initialize the dataset. :param min_max_scaler: Whether to apply min-max scaling to the features. :type min_max_scaler: bool | .. rubric:: Properties .. py:property:: class_names Return human-readable class labels of numbers 0-9. .. py:property:: input_dimension Number of feature columns. .. py:property:: output_dim Number of distinct classes.