In the example keras.layer.Dense(128, activation=tf.nn.relu) is it possible that we overfit the model if we use the number 784 (28*28)?
Tuesday, 07 October 2025
by ASAD BAIG
The question concerns the use of the `Dense` layer in a neural network model built using Keras and TensorFlow, specifically relating to the number of units chosen for the layer and its implications on model overfitting, with reference to the input dimensionality of 28×28, which totals 784 features (commonly representing flattened grayscale images from datasets
- Published in Artificial Intelligence, EITC/AI/TFF TensorFlow Fundamentals, Introduction to TensorFlow, Basic computer vision with ML
Tagged under:
Artificial Intelligence, Computer Vision, Keras, MNIST, Model Capacity, Neural Networks, Overfitting, TensorFlow

