AIML.PPT
AIML.PPT
1.Adarsh Khare
7.Tanvi baraskar
14.Shrinidhi Deshmane
22.Tanay Jain
Content
1.Introduction
2.Flowchart of Procedure
3.Working
4.PSO in Machine Learning
5.Application
Feature One
6.Advantages
7.Limitations
8.Conclusion
Introduction History:
Particle Swarm Optimization (PSO) is a nature-
inspired optimization algorithm based algo .It
was introduced by James Kennedy and Russell
Eberhart in 1995.
Definition:
PSO is a computational method inspired by the
social behavior of birds flocking or fish schooling.
It is used for solving optimization problems.
Purpose:
To find optimal or near-optimal solutions by
simulating a swarm of particles exploring the
search space.
Swarm: A group of particles that move collectively in the search space forms a "swarm."
Search Space:The Search Space in optimization refers to the range of possible values that the algorithm explores
to find the best solution.
Fitness Function: Each particle has a fitness value, determined by the function being optimized (called the
objective function). This value indicates how good the particle's position is.
Position and Velocity: Each particle has a position and velocity. The position represents a candidate solution, while
the velocity determines how the position changes in the next iteration.
Flowchart
Working of PSO
•Initialization: Each particle has a personal best position(pbest) and swarm
(gbest)global best position
•Evaluation: Calculate Fitness value
•Update: calculate Velocity and position updates with equations.
•If max iteration happens then we close the termination . otherwise continues in
same loop .
PSO can be used to optimize the weights and
Neural Network
biases of neural networks, improving their
PSO in Machine
Training
performance.
Clustering:
Search Space: Particles represent centroids of clusters.
Fitness Function: Metrics like Silhouette score or Inertia.
Goal: Minimize intra-cluster variance, maximize inter-cluster separation.
Classification:
Search Space: Particles represent hyperparameter sets (e.g., learning rate,
regularization).
Fitness Function: Metrics like accuracy, F1 score, or AUC.
Goal: Maximize model performance (accuracy, cross-validation score).
PSO Workflow for Clustering &
Classification
Initialize Particles:
Randomly generate particle positions representing centroids (clustering) or hyperparameters (classification).
Evaluate Fitness:
Clustering: Evaluate clustering quality using metrics like Silhouette score.
Classification: Evaluate model performance using accuracy, F1 score, etc.
Update Particles:
Adjust particle velocity and position based on the personal best and global best solutions.
Iterate and Converge:
Particles move toward the optimal solution:
Clustering: Converge on the best cluster centroids.
Classification: Find the best hyperparameter combination for maximum model performance.
Visualization:
Clustering: Particles adjust centroids to optimize clustering quality.
Classification: Particles explore hyperparameter combinations to enhance accuracy.
Simple to implement and understand
Business One