Unit-1 DL
Unit-1 DL
The efficiency Of AI is basically the Less efficient than DL as it can’t work for More powerful than ML as it can easily
efficiency provided by ML and DL longer dimensions or higher amount of work for larger sets of data.
respectively. data.
Examples of AI applications include: Examples of ML applications include: Examples of DL applications include:
Google’s AI-Powered Predictions, Virtual Personal Assistants: Siri, Alexa, Sentiment based news aggregation, Image
Ridesharing Apps Like Uber and Lyft, Google, etc., Email Spam and Malware analysis and caption generation, etc.
Commercial Flights Use an AI Autopilot, Filtering.
etc.
Difference between ML & DL
Machine Learning Deep Learning
Data Performs well on small to Performs well on large datasets
medium datasets
Hardware Able to function on CPU Requires significant computing
power e.g., GPU
Features Features need to be manually Learns features automatically
identified
Training Quick to train Computationally intensive
time
Machine Learning algorithms
ML algorithms can be broadly classified into three categories
1. Supervised,
2. Unsupervised and
3. Reinforcement learning.
Supervised Learning
• In supervised learning we have input variables (x) and an output variable (Y) and we use an
algorithm to learn the mapping from input to output.
• In other words, a supervised learning algorithm takes a known set of input dataset and its known
responses to the data (output) to learn the regression/classification model.
• A learning algorithm then trains a model to generate a prediction for the response to new data or the
test datasets.
• Supervised learning, also known as supervised machine learning, is a subcategory of machine
learning and artificial intelligence.
• It is defined by its use of labeled datasets to train algorithms that to classify data or predict
outcomes accurately.
• There is a relationship between two or more variables i.e., a change in one variable is associated
with a change in the other variable. For example, salary based on work experience or weight based on
height.
Supervised Learning deals with two main tasks Regression and Classification.
Unsupervised Learning
• Unsupervised Learning is used when we do not have labelled data.
• Its main focus is to learn more about the data by inferring patterns in the dataset
without reference to the known outputs.
• It is called unsupervised because the algorithms are left on their own to group the
unsorted information by finding similarities, differences and patterns in the data.
• Unsupervised learning is mostly performed as a part of exploratory data analysis. It is
most commonly used to find clusters of data and for dimensionality reduction.
• Unsupervised learning, also known as unsupervised machine learning, uses machine
learning algorithms to analyze and cluster unlabeled datasets.
• These algorithms discover hidden patterns or data groupings without the need for
human intervention.
Unsupervised Learning deals with clustering and associative rule mining problems.
Reinforcement Learning
• Reinforcement learning can be explained as learning by continuously interacting with
the environment.
• It is a type of machine learning algorithm in which an agent learns from an
interactive environment in a trial and error way by continuously using feedback
from its previous actions and experiences.
• The reinforcement learning uses rewards and punishments, the agents receive rewards
for performing correct actions and penalties for doing it incorrectly.
• Reinforcement Learning is a type of machine learning algorithm that learns to solve a
multi-level problem by trial and error.
• The machine is trained on real-life scenarios to make a sequence of decisions. It
receives either rewards or penalties for the actions it performs.
• Its goal is to maximize the total reward.
Reinforcement Learning deals with exploitation or exploration, Markov's decision
processes, Policy Learning, Deep Learning and value learning.
Neural Networks
• A Neural Network or Neural Net is a system of interconnected processing units called
neurons.
• Artificial Neural Networks (ANN) or Neural Networks is an integral part of Artificial
Intelligence and the foundation of Deep Learning.
• ANN is the computational architecture consisting of neurons that mathematically
represent how a biological neural network operates to identify and recognize
relationships within the data.
• Essentially Neural networks are non-linear machine learning models, which can be
used for both supervised or unsupervised learning.
• Neural networks are also seen as a set of algorithms, which are modeled loosely based
on the human brain and are built to identify patterns.
Basics of Neural Networks
neurons
❖ It is an elementary unit in an artificial neural network
❖ Inputs are summed and passed through a nonlinear function to produce output
Synapses: means how the neurons talk to each other Weights or the interconnections: it transforms the input
data within the hidden layers of the network
Axon: carries nerve impulses away from the cell Output: Output of the Neural Network
body. In short, it is a vehicle to channelize the output
Applications of Neural Networks
•Neural networks are effectively applied to several fields to resolve data issues, some examples are listed below.
Facial Recognition
•Neural networks are playing a significant role in facial recognition. Some smartphones can identify the age of a person. This is
based on facial features and visual pattern recognition.
Weather Forecasting
•Neural networks are trained to recognize the patterns and identify distinct kinds of weather. Weather forecasting, with the help of
neural networks, not only predicts the weather.
Music composition
•Neural networks are mastering patterns in sounds and tunes. These networks train themselves adequately to create new music.
They are also being used in music composition software.
2. Feedforward process
• Temporal Instability
• Network Paralysis
• It is sensitive to noisy data and irregularities. Noisy data can lead to inaccurate
results.
• Performance is highly dependent on input data.
• Spending too much time training.
• The matrix-based approach is preferred over a mini-batch.
Need for Backpropagation
• Backpropagation is “backpropagation of errors” and is very useful for training
neural networks.
• It’s fast, easy to implement, and simple.
• Backpropagation does not require any parameters to be set, except the number of
inputs.
• Backpropagation is a flexible method because no prior knowledge of the network
is required.
Types of Backpropagation
There are two types of backpropagation networks:
1. Static backpropagation: It is one kind of backpropagation network which produces a
mapping of a static input for static output.
• These types of networks are capable of solving static classification problems such as
OCR (Optical Character Recognition).
2. Recurrent backpropagation: Recurrent Back propagation in data mining is fed
forward until a fixed value is achieved. After that, the error is computed and
propagated backward.
• The main difference between both of these methods is: that the mapping is rapid in
static back-propagation while it is non-static in recurrent backpropagation.
• Recurrent backpropagation is another network used for fixed-point learning. Activation
in recurrent backpropagation is feed-forward until a fixed value is reached. Static
backpropagation provides an instant mapping, while recurrent backpropagation does
not provide an instant mapping
Applications of Backpropagation
The applications are:
The neural network is trained to enunciate each letter of a word and a sentence