Deep Learning
Relation between AI, ML and DL
sites.google.com/view/rajkumars1987
5
24-Jul-26
rajkumars@vit.ac.in
Why Deep Learning
sites.google.com/view/rajkumars1987
6
24-Jul-26
rajkumars@vit.ac.in
Why Deep Learning
Deep Learning
Deep Learning Applications Across Industries
Deep Learning Architectures
Deep Learning Architectures (2)
Architecture | Applications |
RNN | Speech recognition, handwriting recognition |
LSTM/GRU networks | Natural language text compression, handwriting recognition, speech recognition, gesture recognition, image captioning |
CNN | Image recognition, video analysis, natural language processing |
DBN | Image recognition, information retrieval, natural language understanding, failure prediction |
DSN | Information retrieval, continuous speech recognition |
Biological inspiration and neural networks
Example Scenario
Summary
In your brain:
Neural Network Perspective
Each input = one neuron (input node)
The three circles represent input neurons.
Each arrow = connection with a weight
Summation (Σ) = neuron combining all signals
The Σ symbol represents a neuron body that:
Biological Neurons
Relationship b/w Biological vs Artificial NN
Biological Neuron | Artificial Neuron (ANN) |
Dendrites | Inputs |
Synaptic strength | Weights |
Cell body (soma) | Weighted sum + bias |
Axon | Output |
Firing (action potential) | Activation function |
Neuron Model
Evolution of Neural Networks
Stage / Period | Key Idea | Diagram (Layer-wise Representation) | Limitations |
1940s–1950s Early Model | McCulloch–Pitts neuron | (x₁, x₂) → [ ⚪ ] → y | No learning, only fixed logic |
1958 Perceptron | Frank Rosenblatt single-layer model | Input Layer → [ ⚪ ] → Output | Cannot solve non-linear problems (XOR) |
1969–1980s AI Winter | Marvin Minsky showed limits | Input → [ ⚪ ] → Output (no hidden layer) | Very limited capability |
1980s–1990s MLP + Backprop | Multi-layer learning | Input → [ ⚪ ⚪ ] → [ ⚪ ] → Output | Slow training, local minima |
1990s–2000s CNN & RNN | Specialized architectures | CNN: Input → [▣▣] → [⚪] → Output RNN: x₁ → [⚪] → x₂ → [⚪] → … | Needs more data, vanishing gradient |
2010s Deep Learning | Deep multi-layer networks | Input → [ ⚪ ⚪ ⚪ ⚪ ] → [ ⚪ ⚪ ] → Output | High computation, needs big data |
2017–Present Transformers | Attention mechanism | Input → [ ⚪ ⚪ ] ⇄ [ ⚪ ⚪ ] → Output | Very high memory & compute cost |
Basic models of ANN
- the models synaptic interconnections
- the training or learning rules for updating the connection weights
- their activation functions
Connections
Type of Connection | Description | Diagram (Simple) | Key Feature |
1. Fully Connected | Every neuron connects to all neurons in next layer | Input → [ ⚪⚪⚪ ] → [ ⚪⚪ ] | Maximum information flow |
2. Partially Connected | Only some neurons are connected | x₁ → ⚪ x₂ → ⚪ | Reduces complexity |
3. Feedforward Connection | Data flows in one direction only | Input → Hidden → Output | No loops |
4. Feedback (Recurrent) | Output fed back into network | x → ⚪ ↺ | Has memory |
5. Lateral Connection | Neurons connect within same layer | ⚪ ↔ ⚪ ↔ ⚪ | Used for competition |
6. Self-Connection | Neuron connects to itself | ⚪ ↺ | Stores past value |
Notes : ANN connections include fully connected, partially connected, feedforward,
feedback (recurrent), lateral, and self-connections, each defining how neurons
are linked and how information flows.
Learning
Type | Description | Example | Limitation |
Supervised Learning | Learns using labeled data | Classification, Regression | Needs labeled dataset |
Unsupervised Learning | Finds patterns in unlabeled data | Clustering | Less accurate |
Reinforcement Learning | Learns using reward/penalty | Games, Robotics | Slow and complex |
Note : “Learning in ANN is the process of updating weights and bias based on error to improve the network’s performance.”
Activation functions
Activation function
Function | Formula | Range | Use | Limitation |
Step Function | | 0 or 1 | Simple classification | Not differentiable |
Sigmoid | | (0,1) | Binary classification | Vanishing gradient |
Tanh | | (-1,1) | Better than sigmoid | Still vanishing gradient |
ReLU | | [0,∞) | Most widely used | Dead neuron problem |
Leaky ReLU | | (-∞,∞) | Fixes ReLU issue | Slight complexity |
Softmax | | (0,1) | Multi-class classification | Computationally expensive |
Activation function
Function | Used in Hidden Layer | Used in Output Layer | Common Use |
Step Function | ❌ No | Rarely | Early perceptrons, not used in modern deep learning |
Sigmoid | ❌ Rarely | ✅ Yes | Binary classification (output probability 0–1) |
Tanh | ✅ Yes | Sometimes | Hidden layers (less common today) |
ReLU | ✅ Yes (Most Common) | ❌ No | Hidden layers in deep neural networks |
Leaky ReLU | ✅ Yes | ❌ No | Hidden layers; avoids the "dying ReLU" problem |
Softmax | ❌ No | ✅ Yes | Multi-class classification (e.g., digits 0–9) |
Activation function
Activation Function | Advantages | Disadvantages |
Step Function | • Simple to implement. • Works for basic binary decisions. | • Not differentiable.• Cannot be trained using backpropagation.• Not used in modern deep learning. |
Sigmoid | • Output ranges from 0 to 1 (good for probabilities).• Ideal for binary classification output. | • Suffers from the vanishing gradient problem.• Slow convergence.• Output is not zero-centered. |
Tanh | • Output ranges from -1 to 1.• Zero-centered, often learns faster than sigmoid. | • Also suffers from the vanishing gradient problem.• Less commonly used than ReLU in deep networks. |
ReLU (Rectified Linear Unit) | • Simple and fast to compute.• Reduces the vanishing gradient problem.• Most widely used activation for hidden layers. | • Can suffer from the dying ReLU problem (neurons may stop learning if outputs remain negative). |
Leaky ReLU | • Solves the dying ReLU problem by allowing a small negative output.• Faster learning than sigmoid and tanh. | • The negative slope is a hyperparameter that must be chosen.• Slightly more computationally expensive than ReLU. |
Softmax | • Produces probabilities that sum to 1.• Best choice for multi-class classification. | • Used only in the output layer.• Can become overconfident in its predictions if the model is poorly calibrated. |
Why Do We Need Activation Functions?
Why Are Activation Functions Important?
1. Introduce Nonlinearity
Examples:
Activation functions allow neural networks to learn these complex relationships.
Why Are Activation Functions Important?
2. Enable Learning of Complex Patterns
Each hidden layer extracts more advanced features.
Image -> Edges -> Shapes -> Face
Without activation functions, the network cannot learn these hierarchical features.
Why Are Activation Functions Important?
3. Prevent the Network from Behaving Like Linear Regression
Suppose a network has several hidden layers:
Input → Hidden Layer → Hidden Layer → Output
If every neuron uses only a linear function:
y=Wx+b then the entire network is mathematically equivalent to one linear transformation:
Input ─────────────► Output
This means adding more layers provides no extra learning power.
Why Are Activation Functions Important?
4. Control the Output Range
Different activation functions produce outputs in different ranges.
Activation Function | Output Range |
Sigmoid | 0 to 1 |
Tanh | -1 to 1 |
ReLU | 0 to ∞ |
Softmax | Probabilities that sum to 1 |
These ranges make activation functions suitable for different tasks.
Why Are Activation Functions Important?
5. Improve Training Efficiency
Modern activation functions such as ReLU help reduce the vanishing gradient problem, allowing deep networks to train faster and more effectively.
Activation function
Without vs With Activation Function
Example without and with activation in network
Loss Functions
Loss Functions
Loss Function | Problem Type | Common Output Activation | Advantages | Disadvantages |
MSE | Regression | Linear | Simple, penalizes large errors | Sensitive to outliers |
MAE | Regression | Linear | Robust to outliers | Penalizes large errors less |
Binary Cross-Entropy | Binary Classification | Sigmoid | Accurate probability learning | Sensitive to wrong confident predictions |
Categorical Cross-Entropy | Multi-Class Classification | Softmax | Best for multiple classes | Requires probability outputs |
Hinge Loss | Binary Classification (SVM) | None/Linear | Good class separation | Rarely used in neural networks |
Function Approximation in Neural Networks
Sample of Activation usage in Neural Network
Classification and Clustering Problems
Feature | Classification | Clustering |
Learning Type | Supervised Learning | Unsupervised Learning |
Data Labels | Labeled data | Unlabeled data |
Goal | Predict a known class | Discover hidden groups |
Output | Predefined categories | Naturally formed clusters |
Classification and clustering are two important machine learning tasks. Although both involve grouping data, they differ in how they learn from the data.
Classification and Clustering: Examples and Common Algorithms
Learning Task | Real-World Examples | Common Algorithms |
Classification (Supervised Learning) | • Email Spam Detection�• Disease Diagnosis�• Handwritten Digit Recognition�• Face Recognition�• Sentiment Analysis�• Fraud Detection�• Loan Approval Prediction | • Logistic Regression�• Decision Tree�• Random Forest�• Support Vector Machine (SVM)�• K-Nearest Neighbors (KNN)�• Naïve Bayes�• Neural Networks |
Clustering (Unsupervised Learning) | • Customer Segmentation�• Market Basket Analysis�• Document Grouping�• News Article Clustering�• Image Segmentation�• Social Network Analysis�• Gene Expression Analysis | • K-Means Clustering�• Hierarchical Clustering�• DBSCAN (Density-Based Spatial Clustering)�• Gaussian Mixture Models (GMM)�• Mean Shift Clustering�• OPTICS�• Spectral Clustering |
Simple Illustration
Deep Networks Basics
-1 hidden layer
-2 or more hidden layers
Shallow Neural Networks
Deep Network vs Shallow Network
Feature | Shallow Network | Deep Network |
Hidden Layers | One | Two or more |
Feature Learning | Limited | Hierarchical and automatic |
Complexity | Low | High |
Accuracy | Moderate | High (with enough data) |
Training Time | Short | Longer |
Applications | Simple tasks | Complex tasks (vision, NLP, speech) |
Common Activation Functions
Layer | Activation Function |
Hidden Layers | ReLU, Leaky ReLU, Tanh |
Output Layer (Binary Classification) | Sigmoid |
Output Layer (Multi-class Classification) | Softmax |
Output Layer (Regression) | Linear |
Summary
Artificial Intelligence isn't magic—it's mathematics, algorithms, and practice. Keep learning, keep experimenting, and you'll be amazed at what you can create.
Thank you
"A journey of a thousand miles begins with a single step." — Lao Tzu
Today, you've taken your first step into the world of AI.
Loss Vs Error
Loss | Error |
A continuous value that measures how bad a prediction is. | Indicates whether the prediction is correct or incorrect (or by how much it differs). |
Used to train the neural network. | Used to evaluate model performance. |
Must be differentiable for backpropagation. | May or may not be differentiable. |
Examples: Cross-Entropy, Mean Squared Error (MSE). | Examples: Misclassification rate, Accuracy, Absolute error. |
Activation functions
Types of Activation Functions
Plot Sigmoid Function in the range(-5, 5)
x | Sigmoid(x) |
-5 | |
-4 | |
-3 | |
-2 | |
-1 | |
0 | |
1 | |
2 | |
3 | |
4 | |
5 | |
Plot Sigmoid Function in the range(-5, 5)
x | Sigmoid(x) |
-5 | 0.006 |
-4 | 0.017 |
-3 | 0.047 |
-2 | 0.119 |
-1 | 0.268 |
0 | 0.500 |
1 | 0.731 |
2 | 0.880 |
3 | 0.952 |
4 | 0.982 |
5 | 0.993 |
Why is this a problem?
Because the outputs are always positive:
Plot Tanh Function
x | Tanh(x) |
-5 | |
-4 | |
-3 | |
-2 | |
-1 | |
0 | |
1 | |
2 | |
3 | |
4 | |
5 | |
Plot Tanh Function
x | Tanh(x) |
-5 | -0.99 |
-4 | -0.99 |
-3 | -0.99 |
-2 | -0.96 |
-1 | -0.76 |
0 | 0 |
1 | 0.76 |
2 | 0.96 |
3 | 0.99 |
4 | 0.99 |
5 | 0.99 |
Plot ReLu Function
x | ReLU(x) |
-5 | |
-4 | |
-3 | |
-2 | |
-1 | |
0 | |
1 | |
2 | |
3 | |
4 | |
5 | |
Plot ReLu Function
x | ReLU(x) |
-5 | 0.000000 |
-4 | 0.000000 |
-3 | 0.000000 |
-2 | 0.000000 |
-1 | 0.000000 |
0 | 0.000000 |
1 | 1.000000 |
2 | 2.000000 |
3 | 3.000000 |
4 | 4.000000 |
5 | 5.000000 |
ReLu Function
Activation | Formula | Advantage |
ReLU | max(0,x)) | Simple and fast |
Leaky ReLU | max(0.01x,x)) | Small gradient for negative inputs, reducing dead neurons |
Parametric ReLU (PReLU) | max(\alpha x,x)) | Learns the negative slope during training |
ELU | Smooth negative values | Better gradient flow for negative inputs |
GELU | Used in Transformers (e.g., BERT, GPT) | Smooth activation with strong empirical performance |
Why is ReLU still preferred?
Despite these issues, ReLU has significant advantages:
Variants that fix the dying ReLU problem
Softmax Function
Softmax Function
Softmax function
Error Functions
Loss Function vs Cost Function
Loss Functions
Mean Absolute Error (MAE)
Example: MAE
x | Target(t) | Y=wx | Error=|y-t| |
1.2 | 2.65 | | |
3.4 | 7.50 | | |
2.8 | 6.17 | | |
7.3 | 16.09 | | |
Here
X is input,
W is weight, [Assume w=0.8] Y is the network’s output and t is the target value of the training data.
Example: MAE
MAE=(1.69+4.78+3.93+10.25)/4
=20.65/4=5.1625
x | t | y | Error |
1.2 | 2.65 | 0.96 | 1.69 |
3.4 | 7.50 | 2.72 | 4.78 |
2.8 | 6.17 | 2.24 | 3.93 |
7.3 | 16.09 | 5.84 | 10.3 |
Mean Square Error
Example: MSE
x | t | Y=wx | Error=(y-t)^2 |
1.2 | 2.65 | | |
3.4 | 7.50 | | |
2.8 | 6.17 | | |
7.3 | 16.09 | | |
Here
X is input,
W is weight, [Assume w=0.8] Y is the network’s output and t is the target value of the training data.
Example: MSE
x | t | y | (y-t) | (Y-t)^2 |
1.2 | 2.65 | 0.96 | -1.69 | 2.86 |
3.4 | 7.5 | 2.72 | -4.78 | 22.8 |
2.8 | 6.17 | 2.24 | -3.93 | 15.4 |
7.3 | 16.1 | 5.84 | -10.25 | 105 |
Root Mean Square Error (RMSE)
Example: MSE
x | t | Y=wx | Error=(y-t)^2 |
1.2 | 2.65 | | |
3.4 | 7.50 | | |
2.8 | 6.17 | | |
7.3 | 16.09 | | |
Here
X is input,
W is weight, [Assume w=0.8] Y is the network’s output and t is the target value of the training data.
Example: RMSE
x | t | y | (y-t) | (Y-t)^2 |
1.2 | 2.65 | 0.96 | -1.69 | 2.86 |
3.4 | 7.5 | 2.72 | -4.78 | 22.8 |
2.8 | 6.17 | 2.24 | -3.93 | 15.4 |
7.3 | 16.1 | 5.84 | -10.25 | 105 |
Binary Cross Entropy Loss
True Label (yi) | 1 |
Predicted Label (𝑦𝑖 ) | 0.99 |
Example: Assume n=1[Only one sample]
Categorical Cross Entropy Loss
Sparse Categorical Crossentropy
Sparse Categorical Crossentropy
Perceptron neural networks
What is Perceptron?
A Perceptron is one of the simplest and most fundamental unit of artificial neural networks, introduced by Frank Rosenblatt in 1957.
The perceptron consists of following component's
Architecture
Perceptron Learning Algorithm
Perceptron Learning Algorithm
Example
x₁ | x₂ | y (Actual) |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
x₁ | x₂ | y (Actual) |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Epoch 1
x₁ | x₂ | y | w₁ (before) | w₂ (before) | b (before) | z | ŷ | Error | w₁ (after) | w₂ (after) | b (after) |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | -1 | 0 | 0 | -1 |
0 | 1 | 0 | 0 | 0 | -1 | -1 | 0 | 0 | 0 | 0 | -1 |
1 | 0 | 0 | 0 | 0 | -1 | -1 | 0 | 0 | 0 | 0 | -1 |
1 | 1 | 1 | 0 | 0 | -1 | -1 | 0 | +1 | 1 | 1 | 0 |
Epoch 2
x₁ | x₂ | y | w₁ (before) | w₂ (before) | b (before) | z | ŷ | Error | w₁ (after) | w₂ (after) | b (after) |
0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | -1 | 1 | 1 | -1 |
0 | 1 | 0 | 1 | 1 | -1 | 0 | 1 | -1 | 1 | 0 | -2 |
1 | 0 | 0 | 1 | 0 | -2 | -1 | 0 | 0 | 1 | 0 | -2 |
1 | 1 | 1 | 1 | 0 | -2 | -1 | 0 | +1 | 2 | 1 | -1 |
Epoch 3
x₁ | x₂ | y | w₁ (before) | w₂ (before) | b (before) | z | ŷ | Error | w₁ (after) | w₂ (after) | b (after) |
0 | 0 | 0 | 2 | 1 | -1 | -1 | 0 | 0 | 2 | 1 | -1 |
0 | 1 | 0 | 2 | 1 | -1 | 0 | 1 | -1 | 2 | 0 | -2 |
1 | 0 | 0 | 2 | 0 | -2 | 0 | 1 | -1 | 1 | 0 | -3 |
1 | 1 | 1 | 1 | 0 | -3 | -2 | 0 | +1 | 2 | 1 | -2 |
Limitation of Perceptron
👉 Biggest limitation
- Perceptron can only draw a straight line (linear boundary)
- Cannot handle problems like XOR
Example:
- AND → ✔ works
- XOR → ❌ fails
-Output is only:0 or 1
-Cannot directly handle: Multi-class problems, Continuous outputs
Limitation of Perceptron
- Works only if data can be separated by a single line
- If data overlaps: Perceptron will never converge
-Gives only hard decision (0 or 1)
-Does NOT provide: Confidence, Probability
- If learning rate is:
Limitation of Perceptron
- Single-layer perceptron:
- Always assumes:
- Real-world data is often non-linear
Thank you
Gradient Descent
Definition
Why Do We Need Gradient Descent?
Actual House Price: $300,000
Predicted Price: $250,000
Error = $50,000
How Gradient Descent Works
Calculate how much each weight contributed to the error.
Large gradient → Large weight update
Small gradient → Small weight update
Mountain Analogy
How to Compute the Gradient in Neural Networks
How to Compute the Gradient in Neural Networks
How to Compute the Gradient in Neural Networks
How to Compute the Gradient in Neural Networks
How to Compute the Gradient in Neural Networks
How to Compute the Gradient in Neural Networks
Types of Gradient Descent
Type | Description | Advantage | Disadvantage |
Batch Gradient Descent | Uses the entire dataset to update weights | Stable and accurate | Slow for large datasets |
Stochastic Gradient Descent (SGD) | Updates weights after each training example | Fast and suitable for large datasets | Noisy updates |
Mini-Batch Gradient Descent | Uses a small batch of samples (e.g., 32 or 64) | Faster and more stable than SGD | Batch size must be chosen |
Learning Rate (η)
Minimum
Slow learning
More Stable
Takes longer to converge
Maximum
Faster updates
May miss the minimum
Can become unstable
Learning Rate (η)
Minimum
Faster convergence
Stable learning
Why Can't We Just Update the Weight by the Gradient?
wnew = wold − Gradient = 5 − 20 = −15
-The update is too large.
- The model may overshoot (miss) the minimum loss.
Therefore, we introduce a Learning Rate (η) to control the size of the update.
wnew = wold − η(∂L/∂w)
wnew = 5 − (0.1 × 20) = 5 − 2 = 3
The weight changes smoothly from 5 to 3 instead of making a large jump to −15.
Conclusion:
• Without a learning rate → Very large updates → May overshoot the minimum.
• With a learning rate → Controlled updates → Stable and efficient learning.
Multi-Layer Perceptron (MLP)
What is MLP?
Structure of MLP
Layers:
MLP Properties
Note : 1. Number of output units need not equal number of input units
2. Number of hidden units per layer can be more or less than input or output units
114
What do each of the layers do?
1st layer draws linear boundaries
2nd layer combines the boundaries
3rd layer can generate arbitrarily complex boundaries
Note : 1. Perceptron : Can draw only single line
2. MLP : Combines multiple lines → forms curves, polygons, complex regions
MLP with Back propagation
MLP with Back propagation
Core learning algorithm of MLP
Step
MLP with Back propagation Algorithm
zj = ∑wijxi+bj
aj = f(zj)
MLP with Back propagation Algorithm
zk = ∑wjkaj+bk
yp = f(zk)
Step 3 : Backward Propagation Phase
Example (Mean Squared Error):
E = ½ * (y-yp)2
MLP with Back propagation Algorithm
δk=(y−yp)f′(yp)
δj=f′(aj)∑δk wjk
Step 4 : Update weights
Step 4.1 Output weights:
wjk(new) =wjk(old)+ηδkaj
Step 4.2 Hidden weights:
wij(new)=wij(old)+ηδjxi
Step 4.3 biases
b(new)=b(old)+ηδ
MLP with Back propagation Algorithm
MLP with Back propagation Algorithm
Example
y=1
η=0.1
Example
w1=0.2, w2=0.3, b1=0.1
w3=0.4, w4=0.1, b2=0.1
w5=0.3, w6=0.2, b3=0.1
z1=(1)(0.2)+(0)(0.3)+0.1=0.3
a1=σ(0.3)=0.574
Example
z2=(1)(0.4)+(0)(0.1)+0.1=0.5
a2=σ(0.5)=0.622
z3=(0.574)(0.3)+(0.622)(0.2)+0.1
z3=0.172+0.124+0.1=0.396
yp=σ(0.396)=0.598
Example
E=1/2(1−0.598)2=0.081
δ3=(1−0.598)(0.598)(0.402)
δ3≈0.097
Example
Neuron 1:
δ1=δ3⋅w5⋅a1(1−a1)
δ1=0.097⋅0.3⋅(0.574)(0.426)
δ1≈0.007
Neuron 2:
δ2=δ3⋅w6⋅a2(1−a2)
δ2=0.097⋅0.2⋅(0.622)(0.378)
δ2≈0.005
Example
Hidden → Output:
w5=0.3+0.1(0.097)(0.574)≈0.306 w6=0.2+0.1(0.097)(0.622)≈0.206
b3 = 0.1 + 0.1(0.097) ≈ 0.109
Example
Neuron 1 :
w1=0.2+0.1(0.007)(1)≈0.201
w2=0.3+0.1(0.007)(0)=0.3
b1 =0.1+0.1(0.007)≈ 0.101
Neuron 2:
w3=0.4+0.1(0.005)(1)≈0.401
w4=0.1+0.1(0.005)(0)=0.1
b2=0.1+0.1(0.005)≈0.1005
Example : Final Updated Values (After 1 Backpropagation Step)
Parameter | Old Value | New Value |
w1 | 0.2 | 0.201 |
w2 | 0.3 | 0.300 |
W3 | 0.4 | 0.401 |
W4 | 0.1 | 0.100 |
W5 | 0.3 | 0.306 |
W6 | 0.2 | 0.206 |
b1 | 0.1 | 0.101 |
b2 | 0.1 | 0.1005 |
b3 | 0.1 | 0.109 |
MLP Algorithm Summary
MLP Algorithm Summary
Thank you
Parameters
Parameters are values learned automatically by the neural network during training.
Weights (W)
Biases (b)
Learned from data.
Updated during backpropagation.
Directly affect predictions.
Hyperparameters
- Hyperparameters are values chosen before training.
- They control how the neural network learns, but they are not learned from the data.
Hyperparameter | Purpose |
Learning Rate | Controls weight update size |
Number of Hidden Layers | Controls network depth |
Number of Neurons | Controls model capacity |
Batch Size | Number of samples processed before updating weights |
Number of Epochs | Number of complete training passes |
Activation Function | Determines neuron output |
Optimizer | Updates weights (SGD, Adam, RMSProp) |
Dropout Rate | Helps prevent overfitting |
Summary
Key Takeaways
Thank you
"Deep learning is not about making machines think like humans; it's about teaching machines to learn from data. The stronger your foundation, the greater your innovations."
Additional problem
x1,x2→h1,h2→o
x1=0.5, x2=0.3
b1=b2=b3=0
η=0.1
Hidden Layer activation Tanh
Output Layer activation Sigmoid