Neural Network - Overview
Neural Network - Overview
Network – A
Quick Tour
SAPTARSI
An application of neural net (Who is the
celebrity)
Deepfakes (a portmanteau
of "deep learning" and
"fake"[1]) are synthetic
media[2] in which a person
in an existing image or
video is replaced with
someone else's likeness.
While the act of faking
content is not new,
deepfakes leverage
powerful techniques
from machine
learning and artificial
intelligence to manipulate or
generate visual and audio
content with a high potential
to deceive.
In Agriculture
In Healthcare
Some basic questions
❑ What is AI ?
McCarthy persuaded Minsky, Shannon, and Rochester to help him organize “a 2 month, 10
man study of artificial intelligence to be carried out during the summer of 1956
The term artificial intelligence was McCarthy’s invention; he wanted to distinguish this field from
a related effort called cybernetics. McCarthy later admitted that no one really liked the
name—after all, the goal was genuine, not “artificial,” intelligence—but “I had to call it
something, so I called it ‘Artificial Intelligence.’
The army of ten
❑ Different Factors
✔ Is it a thriller ?
✔ Is Akshaya Kumar in the Movie?
✔ Does the move have a 6+ IMDB
Rating?
Perceptron (1957)
x1
2x1 + 3x2
Perceptron in decision making
X1 X2 2x1 + 3x2 -6 Y
1 1 - 1 0
0 1 - 3 0
1 2 2 1
2 2 4 1
Step Function
Working of a perceptron
❑ A psychologist, Rosenblatt conceived of the Perceptron as a simplified mathematical
model of how the neurons in our brains operate:
❑ It takes a set of binary inputs (nearby neurons),
❑ multiplies each input by a continuous valued weight (the synapse strength to each
nearby neuron),
❑ thresholds the sum of these weighted inputs to output a 1 if the sum is big enough
and otherwise a 0 (in the same way neurons either fire or do not).
❑ The Mcculoch-Pitts model lacked a mechanism for learning, which was crucial for it to
be usable for AI.
XOR Paradox
Putting
together
different
terms
Perceptron and the machine learning
connection
Non-linearly Separable
More Multi-Layer Perceptron
Cascading of Layers
Two layers :Generate convex decision regions
Y LAYER 2 NEURON
IS 1 ONLY IN
THIS REGION
S1
S2
X
LAYER 1
w11
X S1 LAYER 2
w12
w21
S2
Y w22
What needs to be done ?
❑ Use a MLP for Breast Cancer Classification
❑ The data has 9 input features, hence the dimension of the input layer will be 9
❑ We will add a hidden layer and it may have any number of hidden layers
23
Simple Exercise
https://www.kaggle.com/code/saptarsi/keras-and-simple-cl
assification-sg/
Shallow and
Deep
ML and DL
How to learn the weights (GD)
Effect of learning rate
Geron
Aurelo Geron
28
Better Activation Function
Better Optimization
Back Propagation
In physical world ……
Momentum
❑ The data has 9 input features, hence the dimension of the input layer will be 9
❑ We will add a hidden layer and it may have any number of hidden layers
https://www.kaggle.com/code/saptarsi/keras-and-simple-cl
assification-sg/
Summary
❑ The magical capability of Biological Neurons inspired ANN
❑ Initial MP Neuron was improved by perceptron, and it was the thing we were waiting for
until it was challenged by the XOR Problem
❑ Even after that training deep neural network was not possible until a breakthrough in
terms of unsupervised pre training
❑ After that there has been no looking back, with newer optimizers, activations,
regularizations and initialization strategies. It’s still on going.
Thank You