Skip to content

Pranay22077/Handwritten-Digit-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

🧠 Handwritten Digit Recognition using Neural Networks

A deep learning project that classifies handwritten digits from the MNIST dataset using a simple Artificial Neural Network built with TensorFlow and Keras


📊 Project Overview

This project implements a neural network to recognize handwritten digits (0-9) from the MNIST dataset. The model achieves over 96% accuracy on the test set using a relatively simple architecture with just a few dense layers.


🧠 Model Architecture

  • Input: Flattened 28×28 grayscale images (784 neurons)
  • Hidden Layer 1: 128 neurons with ReLU activation function
  • Hidden Layer 2: 32 neurons with ReLU activation function
  • Output Layer: 10 neurons with Softmax activation (one for each digit)

Total Parameters: 104,938

Model Architecture

model = Sequential()
model.add(Flatten(input_shape=(28, 28)))
model.add(Dense(128, activation='relu'))
model.add(Dense(32, activation='relu'))
model.add(Dense(10, activation='softmax'))

# Model Summary
"""
Model: "sequential"
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 flatten (Flatten)           (None, 784)               0         
 dense (Dense)               (None, 128)               100480    
 dense_1 (Dense)             (None, 32)                4128      
 dense_2 (Dense)             (None, 10)                330       
=================================================================
Total params: 104,938
Trainable params: 104,938
Non-trainable params: 0
"""

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors