CNN model to classify handwritten digits using TensorFlow/Keras
A Convolutional Neural Network (CNN) built using TensorFlow and Keras to classify handwritten digits (0β9) from the MNIST dataset.
This is my first Deep Learning project as part of my journey to become an AI Engineer, aimed at building a strong resume for internships, freelance jobs, and top AI scholarships like MBZUAI.
- β Training Accuracy: ~99%
- β Test Accuracy: ~98%
- β Frameworks: TensorFlow 2, Keras API
Hereβs a sample prediction from the model:
- Python
- TensorFlow + Keras
- Matplotlib
- NumPy
- Google Colab
Hi, I'm Muhammad Rayan Shahid β a 15-year-old aspiring AI Engineer from Karachi π΅π°.
- π» Freelancer building real-world AI solutions
- ποΈ Founder of ByteBrilliance AI
- π Passionate about mastering AI and technology
π¬ Let's connect:
π GitHub | π₯ YouTube
βBuilding intelligent systems with purpose, not just code.β
The model is trained on the MNIST dataset, which consists of 60,000 training and 10,000 test images of handwritten digits (0β9), grayscale 28x28 pixels.
This dataset is available directly via TensorFlow:
(X_train, y_train), (X_test, y_test) = tf.keras.datasets.mnist.load_data()