Neural Networks
Neural Networks
linear regression.
Deep Learning is a specialized area within ML that uses neural networks with many layers
(i.e., deep structures).
ANN, CNN, R-CNN are all deep learning models:
ANN – General-purpose deep learning model.
CNN – Specialized for image-related tasks.
R-CNN – Advanced CNN for object detection.
Neural Networks
A neural network is a computational model inspired by the way the human brain works. It is
made up of layers of interconnected nodes (neurons) that process and learn from data.
Basic Components:
1. Input Layer – Takes the raw data.
2. Hidden Layers – Perform calculations, extract patterns.
3. Output Layer – Gives the final prediction or classification.
Each neuron receives inputs, applies weights, adds bias, and passes the result through an
activation function (like ReLU or Sigmoid).
Activation Function
An activation function decides whether a neuron should be activated or not by transforming
the input signal into an output.
It adds non-linearity to the model, allowing the network to learn complex patterns.
Why It's Important
Without activation functions, a neural network would behave like a plain linear model—
unable to solve complex problems like image or voice recognition.
Used For:
Predictive analytics
Image and speech recognition
Natural language processing
Medical diagnostics
How It Learns:
Forward Propagation – Data flows through the network to get a prediction.
Loss Calculation – Measures the error in prediction.
Backpropagation – Adjusts weights to reduce error using algorithms like gradient
descent.