MNIST dataset
MNIST is a labeled dataset of grayscale 28-by-28-pixel images of handwritten digits from zero through nine.
Bayesian Optimization in Action
The MNIST dataset is a labeled collection of handwritten digit images commonly used for machine-learning training and evaluation.
- How it is used
- Uses handwritten digit images as structured-data inputs for Gaussian-process learning and simulated regression.
- How deep it goes
- Defines pixel structure, demonstrates tensor preparation, and works through a 1,000-image Gaussian-process experiment.
- Examples
- Shows a handwritten five, a 784-element tensor, and a train-test experiment using 1,000 training and 500 test images.
- What you can do after
- Apply it via PyTorch and torchvision to load, normalize, flatten, visualize, and split handwritten-digit data for GP prediction.
Read how Bayesian Optimization in Action explains MNIST dataset →
Deep Learning with Python, Third Edition
A standard dataset of handwritten-digit images used for machine-learning experiments and examples.
- How it is used
- Grounds introductory neural-network classification experiments in a familiar, repeatable benchmark.
- How deep it goes
- Explains dataset contents, tensor representation, preprocessing, prediction, and evaluation, but not dataset construction or collection details.
- Examples
- Uses Keras loading code, array-shape inspection, a displayed digit, preprocessing steps, predictions, and test accuracy.
- What you can do after
- Apply it via Keras to load, inspect, preprocess, train on, predict with, and evaluate a digit-classification dataset.
Read how Deep Learning with Python, Third Edition explains MNIST dataset →
Inside Deep Learning: Math, Algorithms, Models
A classic handwritten-digit image dataset of 28×28 grayscale examples used here to illustrate image loading and tensor structure.
- How it is used
- Uses a small image dataset for quick PyTorch examples and a toy problem that motivates attention.
- How deep it goes
- Explains loading, splits, image-to-tensor conversion, dimensions, and visual manipulations without detailing dataset internals.
- Examples
- Shows grayscale digits, repeated or combined channels, and shuffled pixels as image examples.
- What you can do after
- Apply it via torchvision to load a split and convert PIL images into 0–1 tensors.
Read how Inside Deep Learning: Math, Algorithms, Models explains MNIST dataset →
Deep Learning with R, Third Edition
MNIST is a dataset of grayscale 28-by-28 pixel images of handwritten digits labeled from 0 through 9.
- How it is used
- Supports handwritten-digit classification and serves as a standard check that neural-network algorithms work as expected.
- How deep it goes
- Defines image dimensions, class labels, array organization, and train-test roles, while deferring detailed model mechanics.
- Examples
- Uses Keras array loading, sample digit images, array structures, and corresponding training and test labels.
- What you can do after
- Operate Keras to load MNIST arrays for training a handwritten-digit classifier and evaluating predictions.
Read how Deep Learning with R, Third Edition explains MNIST dataset →
Deep Learning with JAX
A standard handwritten-digit image dataset used for machine learning experiments and evaluation.
- How it is used
- Uses handwritten-digit images as a practical multiclass classification task for introducing a JAX deep-learning workflow.
- How deep it goes
- Positions MNIST within data loading and model training, without detailing the dataset’s internal construction or format.
- Examples
- Shows handwritten-digit images and uses batches produced by a TensorFlow Datasets data loader.
- What you can do after
- Apply it via TensorFlow Datasets as batched input for training and evaluating a JAX classification model.
Also covered in
- Grokking Machine Learning
- Distributed Machine Learning Patterns
- Causal AI
- Machine Learning Algorithms in Depth
- Grokking Machine Learning, Second EditionIn early access (MEAP)
- Evolutionary Deep Learning: Genetic algorithms and neural networks
- CUDA for LLMs
- Data Pipelines with Apache Airflow, Second Edition
- Learn Generative AI with PyTorch
What to know first
- accuracyAccuracy is the degree to which a result agrees with a specified truth, reference, or criterion, commonly measured as the proportion of evaluated predictions that are correct.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- optimizationOptimization is the systematic selection or modification of values, configurations, or implementations to improve a defined objective, often subject to constraints.
- benchmarkA benchmark is a defined, repeatable task, workload, test, dataset, or reference standard used to measure or compare systems or methods under specified conditions.
Related concepts
- benchmarkkind of · A benchmark is a defined, repeatable task, workload, test, dataset, or reference standard used to measure or compare systems or methods under specified conditions.
- language modeluses · A language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- classificationused by · Classification is the task of assigning an input or observation to one or more categories from a defined set of labels.
- Fashion-MNISTalternative to · Fashion-MNIST is a dataset of 70,000 grayscale images of clothing and accessories, each labeled as one of ten categories.
- digital imagehas part · A digital image is a digital representation of visual content, commonly encoded as an arrangement of pixels or other graphical elements.
- image recognitionused by · Image recognition is the computational task of identifying or classifying objects, patterns, scenes, or other meaningful content in images.
Questions about MNIST dataset
What is MNIST dataset?
MNIST is a labeled dataset of grayscale 28-by-28-pixel images of handwritten digits from zero through nine.
Which Manning books explain MNIST dataset?
Bayesian Optimization in Action, Deep Learning with Python, Third Edition, Inside Deep Learning: Math, Algorithms, Models, Deep Learning with R, Third Edition and Deep Learning with JAX.
What should I know before learning MNIST dataset?
Manning books that teach MNIST dataset usually introduce accuracy, language model, optimization and benchmark first.
What is the difference between MNIST dataset and Fashion-MNIST?
MNIST is a labeled dataset of grayscale 28-by-28-pixel images of handwritten digits from zero through nine. Fashion-MNIST is a dataset of 70,000 grayscale images of clothing and accessories, each labeled as one of ten categories.
What is MNIST dataset a kind of?
MNIST dataset is a kind of benchmark. A benchmark is a defined, repeatable task, workload, test, dataset, or reference standard used to measure or compare systems or methods under specified conditions.
What are the parts of MNIST dataset?
MNIST dataset includes digital image.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




