Skip to content

Commit f4e3b97

Browse files
committed
fully_connected_mnist.py: For the basic fully connected neural network.
1 parent 74b6229 commit f4e3b97

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

machine_learning/neural_networks/fully_connected_mnist.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
"""
2+
Fully Connected Neural Network for MNIST Classification
3+
4+
Goal: This script implements a fully connected feed-forward neural network using TensorFlow and Keras to classify the
5+
MNIST dataset (28x28 grayscale images of handwritten digits from 0 to 9). The network has two hidden layers with ReLU
6+
activations and dropout for regularization.
7+
8+
Objectives:
9+
- Normalize and preprocess MNIST data.
10+
- Build a basic neural network with dense layers.
11+
- Train the model, evaluate its accuracy and loss at each epoch, and predict sample outputs.
12+
"""
13+
14+
115
import tensorflow as tf
216
from tensorflow.keras import layers, models
317
import numpy as np

0 commit comments

Comments
 (0)