Skip to content

Explore the Fascinating World of Handwritten Digit Recognition! πŸš€ Harness the Potent Capabilities of Neural Networks through this Code Snippet, Immersing Yourself in the Realm of AI-Driven Handwritten Digit Recognition. The Revered MNIST Dataset Anchors the Journey, Leading the Way in Crafting, Training, and Assessing Models for Accurate Digit For

Notifications You must be signed in to change notification settings

Jeelanihansha/Number-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Number-Recognition

πŸ”’ Number Recognition! πŸš€

Thrilled to unveil my Handwritten Digit Recognition triumph, fueled by Bharat Intern's guidance! πŸŽ‰

🌟 What's New: βœ… Task 3 Achieved: Proudly completed Task 3 with Bharat Intern. βœ… MNIST Magic: Leveraged the renowned MNIST dataset for precision. βœ… Neural Networks: Designed an ingenious solution for deciphering digits. βœ… Tech meets Creativity: Merged innovation with tech for real-world AI impact.

Key Features:

Data Preprocessing: The MNIST dataset is loaded and preprocessed. Images are scaled to have pixel values ranging from 0 to 1. Model Architecture: Two models are constructed. The first is a simple model with a single output layer of 10 neurons using the sigmoid activation function. The second includes an additional hidden layer of 100 neurons with ReLU activation before the output layer. Model Compilation: Both models are compiled using the 'adam' optimizer and the 'sparse_categorical_crossentropy' loss function for multiclass classification. Accuracy is chosen as the evaluation metric. Training: The models are trained on the flattened training data using the fit method. The number of training epochs is set to 5. Evaluation: The models' accuracy is evaluated using the flattened test data. Confusion Matrix: The confusion matrix is computed and visualized using seaborn. It shows how well the model predicted each class. Sample Predictions: Randomly selected test images are displayed alongside their true labels and predicted labels for the model with a hidden layer. Key Insights and Analysis:

Hidden Layer Benefit: The model with a hidden layer (ReLU activation) tends to perform better than the simple model with only an output layer (sigmoid activation). Adding a hidden layer allows the model to learn more complex features and patterns, resulting in improved accuracy. Confusion Matrix: The confusion matrix provides insights into how well the model performs for each class. It helps identify whether the model struggles with particular digits and the degree of confusion between different digits. Sample Predictions: The displayed sample images, along with their true labels and predicted labels, give a visual understanding of the model's performance. It allows you to see instances where the model succeeded or failed in making accurate predictions. Data Visualization: The code includes visualization components that enable a better understanding of the dataset, model performance, and predictions. Model Iterations: The code showcases iterative training with multiple epochs. Typically, models benefit from more training epochs, but there's a risk of overfitting if not monitored closely.

Colab Benefits

  • Cloud-Based: Google Colab provides free cloud-based access to Jupyter notebooks with GPU support, making it ideal for data science and machine learning projects.

  • Collaboration: You can easily share your Colab notebooks with others, allowing for seamless collaboration.

  • Resource Availability: Colab offers free access to GPUs and TPUs, enabling faster model training without the need for expensive hardware.

About

Explore the Fascinating World of Handwritten Digit Recognition! πŸš€ Harness the Potent Capabilities of Neural Networks through this Code Snippet, Immersing Yourself in the Realm of AI-Driven Handwritten Digit Recognition. The Revered MNIST Dataset Anchors the Journey, Leading the Way in Crafting, Training, and Assessing Models for Accurate Digit For

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published