mnist eda notebook
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
MNIST Exploratory Data Analysis (EDA)
This notebook performs exploratory data analysis on the MNIST handwritten digit dataset.
MNIST contains 70,000 grayscale images of digits (0–9). Each image is 28×28 pixels.
Dataset split:
- Training set: 60,000 images
- Test set: 10,000 images
Goals of this notebook:
- Load the dataset
- Understand its structure
- Visualize sample digits
- Analyze pixel distributions
- Check label distribution
- Normalize image data
- Explore summary statistics
1. Import Required Libraries
We import the libraries required for data analysis and visualization.
import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns