CNN On Original Steps
CNN On Original Steps
The algorithm used in the model is a Convolutional Neural Network (CNN), which is particularly
effective for image classification tasks. :
2. Activation Function:
- Each convolutional layer uses the ReLU (Rectified Linear Unit) activation function, which helps
introduce non-linearity into the model. This allows the network to learn more complex patterns.
3. Pooling Layers:
- MaxPooling2D layers reduce the spatial dimensions of the feature maps. This helps to:
- Down-sample the feature maps, reducing the number of parameters and computation in the
network.
- Prevent overfitting by making the model more robust to small variations in the input images.
- Your model uses max pooling after each convolutional layer.
4. Flatten Layer:
- The Flatten layer converts the 2D feature maps from the last pooling layer into a 1D feature
vector. This prepares the data for the fully connected layers.
Research Page 1
During training, the model learns to minimize the categorical cross-entropy loss, which measures
how well the predicted probabilities match the actual class labels. The optimizer used is Adam,
which adapts the learning rate during training for faster convergence.
# Why CNN?
CNNs are especially suited for image classification tasks because they can automatically learn the
relevant features from the images without requiring manual feature extraction. This ability to learn
spatial hierarchies of features makes CNNs very powerful for tasks involving visual data.
Research Page 2