Last Updated : 23 Jul, 2025
Machine learning algorithms are essentially sets of instructions that allow computers to learn from data, make predictions, and improve their performance over time without being explicitly programmed. Machine learning algorithms are broadly categorized into three types:
Supervised learning algos are trained on datasets where each example is paired with a target or response variable, known as the label. The goal is to learn a mapping function from input data to the corresponding output labels, enabling the model to make accurate predictions on unseen data. Supervised learning problems are generally categorized into two main types: Classification and Regression. Most widely used supervised learning algorithms are:
1. Linear RegressionLinear regression is used to predict a continuous value by finding the best-fit straight line between input (independent variable) and output (dependent variable)
Logistic regression predicts probabilities and assigns data points to binary classes (e.g., spam or not spam).
3. Decision TreesNote : Despite its name, logistic regression is used for classification tasks, not regression.
A decision tree splits data into branches based on feature values, creating a tree-like structure.
For more decision tree algorithms, you can explore:
SVMs find the best boundary (called a hyperplane) that separates data points into different classes.
KNN is a simple algorithm that predicts the output for a new data point based on the similarity (distance) to its nearest neighbors in the training dataset, used for both classification and regression tasks.
Based on Bayes' theorem and assumes all features are independent of each other (hence "naive")
Random forest is an ensemble method that combines multiple decision trees.
7. Gradient Boosting (e.g., XGBoost, LightGBM, CatBoost)For in-depth understanding : What is Ensemble Learning? - Two types of ensemble methods in ML
These algorithms build models sequentially, meaning each new model corrects errors made by previous ones. Combines weak learners (like decision trees) to create a strong predictive model. Effective for both regression and classification tasks. : Gradient Boosting in ML
For more ensemble learning and gradient boosting approaches, explore:
8. Neural Networks ( Including Multilayer Perceptron)Neural Networks, including Multilayer Perceptrons (MLPs), are considered part of supervised machine learning algorithms as they require labeled data to train and learn the relationship between input and desired output; network learns to minimize the error using backpropagation algorithm to adjust weights during training.
Unsupervised Learning AlgorithmsFor in-depth understanding : Supervised multi-layer perceptron model - What is perceptron?
Unsupervised learning algos works with unlabeled data to discover hidden patterns or structures without predefined outputs. These are again divided into three main categories based on their purpose: Clustering, Association Rule Mining, and Dimensionality Reduction. First we'll see algorithms for Clustering, then dimensionality reduction and at last association.
1. ClusteringClustering algorithms group data points into clusters based on their similarities or differences. The goal is to identify natural groupings in the data. Clustering algorithms are divided into multiple types based on the methods they use to group data. These types include Centroid-based methods, Distribution-based methods, Connectivity-based methods, and Density-based methods. For resources and in-depth understanding, go through the links below.
Dimensionality reduction is used to simplify datasets by reducing the number of features while retaining the most important information.
Find patterns (called association rules) between items in large datasets, typically in market basket analysis (e.g., finding that people who buy bread often buy butter). It identifies patterns based solely on the frequency of item occurrences and co-occurrences in the dataset.
Reinforcement learning involves training agents to make a sequence of decisions by rewarding them for good actions and penalizing them for bad ones. Broadly categorized into Model-Based and Model-Free methods, these approaches differ in how they interact with the environment.
1. Model-Based MethodsThese methods use a model of the environment to predict outcomes and help the agent plan actions by simulating potential results.
These methods do not build or rely on an explicit model of the environment. Instead, the agent learns directly from experience by interacting with the environment and adjusting its actions based on feedback. Model-Free methods can be further divided into Value-Based and Policy-Based methods:
Discover the Top 15 Machine Learning Algorithms for Interview Preparation.
Overview of Machine Learning
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4