A simple and efficient neural network model to classify handwritten digits using TensorFlow and the MNIST dataset (soon I will implement the image classification part, slow motion is better than no motion).
- Simple Neural Network: Built using TensorFlow's Keras API for ease of use.
- Data Normalization: Pre-processes the MNIST dataset for optimal training.
- Dropout Layer: Helps prevent overfitting to improve model generalization.
- Softmax Activation: Converts the model's output logits to probabilities.
- Clone the repo:
git clone [https://github.com/reecebaileyy/Image-Classification.git]
cd Image-Classification
- Install TensorFlow:
pip install tensorflow
- Run the script:
python image_classification.py
- Input Layer: Flattens the 28x28 pixel images.
- Hidden Layer: 128 neurons with ReLU activation.
- Dropout Layer: 20% dropout rate.
- Output Layer: 10 neurons for each digit (0-9).
After training for 5 epochs, you can evaluate the model's performance on the test dataset. The accuracy metric will give you an idea of how well the model is performing.
Custom Image Prediction: Soon, you'll be able to input your own handwritten digit images, and the script will predict the digit for you!
Feel free to fork the repository, make changes, and submit pull requests. All contributions are welcome!