Unit 1
Unit 1
ML vs DL vs AI:
AI simulates human intelligence to perform tasks and make decisions. ML is a subset of AI
that uses algorithms to learn patterns from data. DL is a subset of ML that employs artificial
neural networks for complex tasks. AI may or may not require large datasets; it can use
predefined rules.
There are three key aspects of Machine Learning, which are as follows:
o Task: A task is defined as the main problem in which we are interested. This task/problem can
be related to the predictions and recommendations and estimations, etc.
o Experience: It is defined as learning from historical or past data and used to estimate and
resolve future tasks.
o Performance: It is defined as the capacity of any machine to resolve any machine learning
task or problem and provide the best outcome for the same. However, performance is
dependent on the type of machine learning problems.
Types of machine learning
What are the 4 types of machine learning?
There are four types of machine learning algorithms: supervised, semi-supervised,
unsupervised and reinforcement.
What are the 3 types of machine learning?
Machine learning involves showing a large volume of data to a machine so that it can learn
and make predictions, find patterns, or classify data. The three machine learning types
are supervised, unsupervised, and reinforcement learning
Example: If we have 10,000 Students Data who have placed or some un placed and
we want to find the new predictive result output. Output
Input Data
There are two main categories of supervised learning that are mentioned below:
1. Classification
2. Regression
Data
Numerical Data (%, Age, marks, weight) Categorical Data (Gender, Name, Nation)
There are two main categories of unsupervised learning that are mentioned below:
1. Clustering
2. Dimensionality Reduction
(3. Anomaly Detection & 4. Association Rule Learning)
Unsupervised Learning algorithms:
Below is the list of some popular unsupervised learning algorithms.
• K-means clustering
• KNN (k-nearest neighbours)
• Hierarchal clustering
• Anomaly detection
• Neural Networks
• Principle Component Analysis
• Independent Component Analysis
• Singular value decomposition
Supervised ML Vs Un-Supervised ML
Example: If we have 10,000 Students Data who have placed or some un placed and
we want to find the new predictive result output. Output
Input Data
Package
Student Group 1
Max % Min Package
Student Group 2
Min % | Max Package
Student Group 3
Max % | Max Package
Percentage
2. Dimensionality Reduction: Dimensionality reduction is the process of reducing the
number of features (or dimensions) in a dataset while retaining as much information
as possible.
Example: Many input columns is not required in the algorithm, it’s remove extra
columns.
Area
370 Sqft
84 Sqft
80 Sqft
3. Anomaly Detection: Anomaly detection in machine learning is the process of
identifying such anomalies in a dataset. Anomaly detection is an important technique
in machine learning and data mining, as it can be used to detect unusual behaviour,
identify errors, and discover new insights in large datasets.
4. Association Rule Learning
Association rule mining is a technique used to uncover hidden relationships between
variables in large datasets.
1. Image Recognition:
Image recognition is one of the most common applications of machine learning. It is used to identify
objects, persons, places, digital images, etc. The popular use case of image recognition and face
detection is, Automatic friend tagging suggestion:
Facebook provides us a feature of auto friend tagging suggestion. Whenever we upload a photo with
our Facebook friends, then we automatically get a tagging suggestion with name, and the
technology behind this is machine learning's face detection and recognition algorithm.
It is based on the Facebook project named "Deep Face," which is responsible for face recognition
and person identification in the picture.
2. Speech Recognition
While using Google, we get an option of "Search by voice," it comes under speech recognition, and
it's a popular application of machine learning.
Speech recognition is a process of converting voice instructions into text, and it is also known as
"Speech to text", or "Computer speech recognition." At present, machine learning algorithms are
widely used by various applications of speech recognition. Google assistant, Siri, Cortana,
and Alexa are using speech recognition technology to follow the voice instructions.
3. Traffic prediction:
If we want to visit a new place, we take help of Google Maps, which shows us the correct path with
the shortest route and predicts the traffic conditions.
It predicts the traffic conditions such as whether traffic is cleared, slow-moving, or heavily congested
with the help of two ways:
o Real Time location of the vehicle form Google Map app and sensors
o Average time has taken on past days at the same time.
Everyone who is using Google Map is helping this app to make it better. It takes information from
the user and sends back to its database to improve the performance.
4. Product recommendations:
Machine learning is widely used by various e-commerce and entertainment companies such
as Amazon, Netflix, etc., for product recommendation to the user. Whenever we search for some
product on Amazon, then we started getting an advertisement for the same product while internet
surfing on the same browser and this is because of machine learning.
Google understands the user interest using various machine learning algorithms and suggests the
product as per customer interest.
As similar, when we use Netflix, we find some recommendations for entertainment series, movies,
etc., and this is also done with the help of machine learning.
5. Self-driving cars:
One of the most exciting applications of machine learning is self-driving cars. Machine learning plays
a significant role in self-driving cars. Tesla, the most popular car manufacturing company is working
on self-driving car. It is using unsupervised learning method to train the car models to detect people
and objects while driving.
6. Email Spam and Malware Filtering:
Whenever we receive a new email, it is filtered automatically as important, normal, and spam. We
always receive an important mail in our inbox with the important symbol and spam emails in our
spam box, and the technology behind this is Machine learning. Below are some spam filters used by
Gmail:
o Content Filter
o Header filter
o General blacklists filter
o Rules-based filters
o Permission filters
Some machine learning algorithms such as Multi-Layer Perceptron, Decision tree, and Naïve
Bayes classifier are used for email spam filtering and malware detection.
These assistant record our voice instructions, send it over the server on a cloud, and decode it using
ML algorithms and act accordingly.
For each genuine transaction, the output is converted into some hash values, and these values
become the input for the next round. For each genuine transaction, there is a specific pattern which
gets change for the fraud transaction hence, it detects it and makes our online transactions more
secure.
9. Stock Market trading:
Machine learning is widely used in stock market trading. In the stock market, there is always a risk of
up and downs in shares, so for this machine learning's long short term memory neural network is
used for the prediction of stock market trends.