We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b6229 commit f4e3b97Copy full SHA for f4e3b97
machine_learning/neural_networks/fully_connected_mnist.py
@@ -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
15
import tensorflow as tf
16
from tensorflow.keras import layers, models
17
import numpy as np
0 commit comments