Complete Study Notes
Introduction
Deep Learning is a subset of machine learning that uses artificial neural networks to model
complex patterns in data.
It is inspired by the structure and function of the human brain.
Deep learning is widely used in applications such as image recognition, speech processing,
and natural language processing.
Definition
Deep learning is a technique that uses multi-layered neural networks to learn
representations of data.
It allows models to automatically extract features without manual intervention.
It is particularly effective for large datasets and complex problems.
Neural Networks Basics
A neural network consists of layers of nodes called neurons.
Each neuron receives input, applies a function, and passes output to the next layer.
The main layers are input layer, hidden layers, and output layer.
Activation Functions
Activation functions determine whether a neuron should be activated.
Common functions include ReLU, Sigmoid, and Tanh.
They introduce non-linearity into the model.
Forward Propagation
In forward propagation, input data passes through layers to produce output.
Each layer transforms the data using weights and activation functions.
, Backpropagation
Backpropagation is used to update weights based on error.
It calculates gradients and minimizes loss using optimization algorithms.
It is essential for training neural networks.
Loss Functions
Loss functions measure how far predictions are from actual values.
Examples include Mean Squared Error and Cross-Entropy.
They guide the optimization process.
Optimization Algorithms
Optimization algorithms update model weights.
Examples include Gradient Descent, Adam, and RMSProp.
They improve model performance.
Deep Learning Libraries
Popular Python libraries include TensorFlow and Keras.
These libraries simplify building and training neural networks.
They provide high-level APIs for fast development.
Example Code (Keras)
Example:
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
model = Sequential()
model.add(Dense(10, activation='relu'))
model.add(Dense(1))
model.compile(optimizer='adam', loss='mse')
Advantages
Handles complex data such as images and text.