Professional Documents
Culture Documents
Convolution Neural Network
Convolution Neural Network
•Convolution Layer
•Pooling Layer
● It downsamples the output of the Convolutional layers by sliding the filter of some
size with some stride size and calculating the maximum or average of the input.
Types of Pooling Layers:
Max Pooling
Max pooling is a pooling operation that selects the maximum element from the region of the
feature map covered by the filter. Thus, the output after max-pooling layer would be a feature
map containing the most prominent features of the previous feature map.
Types of Pooling Layers:
Average Pooling
Average pooling computes the average of the elements present in the region of
feature map covered by the filter. Thus, while max pooling gives the most
prominent feature in a particular patch of the feature map, average pooling gives
the average of features present in a patch.
Fully-Connected Layer
• In the fully-connected operation of a neural network, the
probabilities.
input image.
• To obtain these probabilities, we initialize our final Dense layer to contain the same number
• The output of this dense layer then passes through the Softmax activation function.
• Softmax function outputs a vector that represents the probability distributions of a list of
potential outcomes.
Data Augmentation
• Overfitting happens because of having too few examples to train on, resulting in a model that
has poor generalization performance. If we had infinite training data, we wouldn’t overfit
because we would see every possible instance.
• The common case in most machine learning applications, especially in image classification
tasks is that obtaining new training data is not easy.
• Data augmentation is a way to generate more training data from our current set. It enriches or
“augments” the training data by generating new examples via random transformation of existing
ones.
• This way we artificially boost the size of the training set, reducing overfitting. So data
augmentation can also be considered as a regularization technique.
Data Augmentation
• Data augmentation is done dynamically during training time.
• We need to generate realistic images, and the transformations should be learnable, simply
adding noise won’t help.
• This way we can generate a lot of new samples from a single training example. Also, data
augmentation is only performed on the training data, we don’t touch the validation or test
set.
Data Augmentation
• Visualization will help understanding the concept. Let’s say
Image1 our original image.
Image1
• Using data augmentation we generate these artificial training
instances.
Image2
CNNs are everywhere
• Image retrieval
• Detection
• Semantic segmentation
• Detect diseases
• Speech Recognition
• Text processing