This project demonstrates a basic image classification task using TensorFlow. The goal is to classify handwritten digits from the MNIST dataset.
- Python 3.x
- TensorFlow
- Matplotlib
- NumPy
- Import TensorFlow library and set verbosity.
- Check the TensorFlow version.
- Import the MNIST dataset.
- Display the shapes of the imported arrays.
- Plot an example image from the dataset.
- Encode the labels using one-hot encoding.
- Reshape the input images.
- Normalize the pixel values.
- Define and compile the neural network model.
- Train the model using the training data.
- Evaluate the model's performance on the test set.
- Generate predictions on the test set.
- Visualize the predictions using Matplotlib.
- Trained the model with an accuracy of 96% on the test set.
- Visualized predictions on a subset of the test set using Matplotlib.
- Clone the repository.
- Install the required dependencies.
- Run the main script to train the model and evaluate its performance.
- Special thanks to the creators of the MNIST dataset.
- This project is licensed under the MIT License