Perceptron
Perceptron
January 7, 2025
Watermark
Contents
1 Perceptron
Basics of perceptron
2 Perceptron Models
Single Layer Perceptron Model
Watermark
Contents
1 Perceptron
Basics of perceptron
2 Perceptron Models
Watermark
What is Perceptron?
X
Net Input = wi xi + w0
i =1
Perceptron Components
Activation Function
Sign function
Step function
Sigmoid function
This is my Title
Perceptron
Basic Problem
Activation Function
The perceptron model begins with the multiplication of all input values
and their weights, then adds these values together to create the
weighted sum. This weighted sum is then applied to the activation
function f to obtain the desired output. This activation function is also
known as the step function and is represented by f .
This is my Title
Perceptron
Basic Problem
Watermark
This is my Title
Perceptron
Basic Problem
Step-1: In the first step, multiply all input values with corresponding
weight values and then add them to determine the weighted sum.
Mathematically, we can calculate the weighted sum as follows:
X
wi · xi = x1 · w1 + x2 · w2 + · · · + xn · wn
Add a special term called bias b to this weighted sum to improve the
model’s performance: X
wi · xi + b
Watermark
Based on the layers, Perceptron models are divided into two types.
These are as follows:
1 Single-layer Perceptron Model
2 Multi-layer Perceptron Model
Watermark
This is my Title
Perceptron Models
Single Layer Perceptron Model
Contents
1 Perceptron
Basics of perceptron
2 Perceptron Models
Watermark
weight parameters.
The model sums up all inputs (weight), and after adding them, if
the total sum of all inputs is more than a pre-determined value, the
model gets activated and shows the output value as +1.
This is my Title
Perceptron Models
Single Layer Perceptron Model
Contents
1 Perceptron
Basics of perceptron
2 Perceptron Models
Watermark
TanH
ReLU (Rectified Linear Unit)
This is my Title
Perceptron Models
Multilayer Perceptron Model
NAND
NOT
XNOR
NOR
This is my Title
Perceptron Models
Multilayer Perceptron Model
Perceptron Function
to minimize the error. This is done using the gradient of the loss
function with respect to the weights, calculated via the chain rule
of calculus.
3 Repeat Until Convergence: The forward and backward passes are
repeated for multiple iterations (epochs) until the network’s
performance converges to a satisfactory level.
This is my Title
Perceptron Models
Multilayer Perceptron Model
Characteristics of Perceptron
Capability Solves only linearly separable Solves both linearly and non-
problems. linearly separable problems.
Activation Function Step function (outputs binary val- Non-linear functions like ReLU, sig-
ues like 0 or 1). moid, or tanh.
This is my Title
Perceptron Models
Multilayer Perceptron Model
Use Cases Binary classification of linearly Complex tasks like image recog-
separable data. nition, NLP, regression, and more.
Training Data Limited to simple datasets with Suitable for large and complex
linear patterns. datasets.