# ๐ Machine Learning Approaches โ AKTU BCS-055
๐ค Machine Learning Approaches
AKTU BCS-055 โ Unit I
Artificial Neural Network โข Clustering โข Reinforcement Learning โข Decision Tree โข Bayesian Network โข SVM โข Genetic Algorithm
๐ Introduction
Machine Learning can be implemented using different approaches depending on the
type of problem, available data, and desired output.
A Machine Learning Approach is a method or technique used by a machine
learning system to learn patterns from data and make predictions or decisions.
๐ง Major Machine Learning Approaches
| No. | Approach | Main Idea |
|---|---|---|
| 1 | Artificial Neural Network | Learns using interconnected artificial neurons. |
| 2 | Clustering | Groups similar data points together. |
| 3 | Reinforcement Learning | Learns through actions, rewards and penalties. |
| 4 | Decision Tree Learning | Uses a tree of decisions for prediction. |
| 5 | Bayesian Networks | Represents probabilistic relationships. |
| 6 | Support Vector Machine | Finds an optimal separating hyperplane. |
| 7 | Genetic Algorithm | Uses evolutionary operations to find good solutions. |
1๏ธโฃ Artificial Neural Network (ANN)
An Artificial Neural Network is a computational model inspired by the
structure and functioning of biological neurons in the human brain.
$$
\boxed{\text{Input Layer} \rightarrow \text{Hidden Layer(s)}
\rightarrow \text{Output Layer}}
$$
๐น Basic Structure
๐ก Input Neurons
โก๏ธ
๐ต Hidden Neurons
โก๏ธ
๐ข Output Neuron
Each neuron receives inputs, applies weights and an activation function, and
produces an output.
$$
z = \sum_{i=1}^{n}w_i x_i+b
$$
$$
y=f(z)
$$
Example: Cat vs Dog image classification, handwriting recognition,
speech recognition.
2๏ธโฃ Clustering
Clustering is an unsupervised learning approach in which similar data
objects are grouped into clusters.
$$
\boxed{\text{Similar Objects} \rightarrow \text{Same Cluster}}
$$
๐น Example
๐ต ๐ต ๐ต ย ย ย ย ๐ด ๐ด ๐ด ย ย ย ย ๐ข ๐ข ๐ข
A clustering algorithm automatically discovers groups without requiring
predefined class labels.
๐ Popular Algorithm
$$
\boxed{\text{K-Means Clustering}}
$$
In K-Means, data points are assigned to the nearest centroid and the centroids
are repeatedly updated.
3๏ธโฃ Reinforcement Learning
Reinforcement Learning is a learning approach in which an agent interacts
with an environment and learns from rewards and penalties.
๐ค Agent
โก๏ธ ACTION โก๏ธ
๐ Environment
๐
โก๏ธ REWARD โก๏ธ
๐ค
$$
\boxed{
\text{Agent}
\xrightarrow{\text{Action}}
\text{Environment}
\xrightarrow{\text{Reward}}
\text{Agent}
}
$$
๐ Example
A robot learns how to reach a destination. A successful action receives a
positive reward, while an undesirable action may receive a penalty.
4๏ธโฃ Decision Tree Learning
A Decision Tree is a supervised learning approach that makes predictions by
applying a sequence of decision rules.
๐ณ Example Decision Tree
$$
\begin{array}{c}
\boxed{\text{Age > 30?}}\
\diagdown \qquad \diagup\
\text{YES} \qquad \text{NO}\
\downarrow \qquad \downarrow\
\boxed{\text{Class A}}
\qquad
\boxed{\text{Class B}}
\end{array}
$$
๐น Components
- ๐ฑ Root Node โ first decision.
- ๐ฟ Internal Nodes โ additional decisions.
- ๐ณ Branches โ outcomes of decisions.
- ๐ Leaf Nodes โ final prediction.
5๏ธโฃ Bayesian Networks
A Bayesian Network is a probabilistic graphical model that represents
relationships between variables using a directed acyclic graph (DAG).
๐ง๏ธ Rain
โก๏ธ
๐ง Wet Road
๐ง๏ธ Rain
โก๏ธ
๐ Traffic
๐ Bayesโ Theorem
$$
\boxed{
P(A|B)=
\frac{P(B|A)P(A)}
{P(B)}
}
$$
Bayesian Networks are useful when uncertainty and probabilistic relationships
are important.
6๏ธโฃ Support Vector Machine (SVM)
Support Vector Machine is a supervised learning algorithm mainly used for
classification. It finds a separating hyperplane that maximizes the margin
between classes.
๐ต ๐ต ๐ต
โ
๐ด ๐ด ๐ด
๐ Maximum Margin
$$
\boxed{
\text{Best Hyperplane}
======================
\text{Maximum Separation Margin}
}
$$
For a linear classifier:
$$
\boxed{
w^Tx+b=0
}
$$
The decision rule can be written as:
$$
f(x)=
\operatorname{sign}(w^Tx+b)
$$
โญ Support Vectors
The data points closest to the separating hyperplane are called
support vectors. They play an important role in determining the optimal
hyperplane.
7๏ธโฃ Genetic Algorithm
A Genetic Algorithm is an optimization technique inspired by the process of
natural evolution.
๐งฌ Population
โฌ๏ธ
๐ Selection
โฌ๏ธ
๐ Crossover
โฌ๏ธ
๐งฌ Mutation
โฌ๏ธ
โจ Better Population
๐น Chromosome Representation
$$
101101
$$
Each chromosome represents a possible solution.
๐น Crossover
Suppose two parent chromosomes are:
$$
P_1=101|110
$$
$$
P_2=110|001
$$
After crossover:
$$
C_1=101|001
$$
$$
C_2=110|110
$$
๐น Mutation
A small random change may occur:
$$
101101
\quad\longrightarrow\quad
101001
$$
Thus, the algorithm searches for better solutions over successive generations.
๐ Quick Comparison โ AKTU Exam Point of View
| Approach | Learning Type | Key Idea |
|---|---|---|
| ANN | Supervised / Unsupervised | Neurons and weighted connections |
| Clustering | Unsupervised | Grouping similar objects |
| Reinforcement Learning | Reward-based | Agent learns through interaction |
| Decision Tree | Supervised | Decision rules and branches |
| Bayesian Network | Probabilistic | Conditional dependencies |
| SVM | Supervised | Maximum-margin separation |
| Genetic Algorithm | Optimization | Evolutionary search |
๐ฏ AKTU BCS-055 Exam Point
Question: Explain the different approaches of Machine Learning.
Answer: Machine Learning can use several approaches to learn patterns
and make decisions. Important approaches include:
- Artificial Neural Network
- Clustering
- Reinforcement Learning
- Decision Tree Learning
- Bayesian Networks
- Support Vector Machine
- Genetic Algorithm
For an examination answer, write the definition, working principle,
important components, and one suitable example of each approach.
๐ง Quick Memory Trick
๐ง ANN โ Neurons
๐ต Clustering โ Groups
๐ค Reinforcement โ Rewards
๐ณ Decision Tree โ Decisions
๐ฒ Bayesian โ Probability
๐ SVM โ Maximum Margin
๐งฌ Genetic Algorithm โ Evolution
๐ PostNetwork Academy
Machine Learning โข Artificial Intelligence โข Data Science
AKTU BCS-055 โ Machine Learning Notes
Learn โ Visualize โ Practice โ Master