Experiment 10 1
Experiment 10 1
:-10
THEORY:-
1. Introduction/Overview:
This experiment introduces Convolutional Neural Networks (CNNs), a powerful class of neural
networks specifically designed for processing structured grid-like data, such as images. Students will
build a CNN using Keras (a high-level API for TensorFlow) to classify images from a simple dataset.
This hands-on experience will solidify their understanding of convolutional layers, pooling layers, and
fully connected layers.
Learning Objectives:
Understand the architecture of a CNN.
Implement convolutional layers, pooling layers, and fully connected layers using Keras.
Train a CNN for image classification.
Evaluate the performance of the trained model.
3. Procedure:
3.1. Dataset Loading and Preprocessing:
Python
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import matplotlib.pyplot as plt
PRACTICAL ASSIGNMENT:
1. What is the role of convolutional layers? How do they extract features?
2. What is the purpose of pooling layers?
3. Why is a softmax activation function used in the output layer?
4. How does the number of filters and kernel size affect the model's performance? (Experiment with these
parameters).
5. What are some strategies to improve the model's accuracy? (e.g., data augmentation, more layers,
different optimizers).