Machine Learning Algorithms Cheat Sheet
Last Updated :
22 Apr, 2025
Machine Learning Algorithms are a set of rules that help systems learn and make decisions without giving explicit instructions. They analyze data to find patterns and hidden relationships. And using this information, they make predictions on new data and help solve problems. This cheatsheet will cover most common machine learning algorithms.
For example, they can recognize images, make predictions for the future using the historical data or group similar items together while continuously learning and improving over time. It is a smart way for computers to evolve and become better at different tasks.
There are different types of machine learning algorithms, each used to solve a different kind of problems. They can be divided into 4 types:
- Supervised Learning
- Unsupervised Learning
- Reinforcement Learning
- Semi-Supervised Learning
Supervised Learning Algorithms
Supervised Learning involves training a model on a labeled dataset, that is each training point is paired with its output label. The goal is to learn from these pairs so that the model can predict labels for new, unseen data. It involves regression and classification. Common Supervised Learning Algorithms are:
- Linear regression
- Logistic regression
- Decision trees
- Random forest
- SVMs
- KNN
- Naive Bayes
- Ensemble learning
Supervised Learning Algorithms | Description | Purpose | Best Use-Cases |
---|
Linear Regression | Predicts continuous output based on input features. | Predict continuous numerical outcomes. | Predicting house prices, Forecasting sales or revenue. |
---|
Logistic Regression | Predicts probability of input belonging to a certain class. | Classify data between two distinct classes. | Spam detection, Predicting customer purchases. |
---|
Decision Trees | Splits data into subsets based on input features. | Simplify decision-making processes. | Customer segmentation, Diagnosing diseases. |
---|
Random Forest | Ensemble learning method combining multiple decision trees. | Improve prediction accuracy and control overfitting. | Credit scoring, Predicting stock prices. |
---|
Support Vector Machines (SVM) | Finds the hyperplane that best separates classes. | Maximize the margin between classes. | Image classification, Handwriting recognition. |
---|
k-Nearest Neighbors (k-NN) | Predicts based on proximity to known data points. | Classify and predict based on proximity to known data points. | Recommender systems, Intrusion detection. |
---|
Naive Bayes | Classifies based on probabilistic relationships. | It assumes independence between features. | Spam filtering, Sentiment analysis. |
---|
Ensemble Learning | Combines multiple models like decision trees to improve prediction. | Improve model accuracy and robustness. | Fraud detection from multiple models, Large-scale prediction tasks. |
---|
Unsupervised Learning Algorithms
Unsupervised Learning deals with unlabeled data. The goal is to find hidden patterns or structures in the input data. Unsupervised learning consists of clustering and association. Unsupervised Learning Algorithms include:
Unsupervised Learning Algorithms | Description | Purpose | Best Use-Cases |
---|
k-Means Clustering | Partitions data into k clusters based on nearest mean. | Groups similar data points together. | Market segmentation, Document clustering. |
---|
Hierarchical Clustering | Builds a hierarchy of clusters using agglomerative or divisive approaches. | Create a hierarchy of nested clusters. | DNA gene data analysis, Social network analysis. |
---|
Principal Component Analysis (PCA) | Reduces dimensionality by transforming data into a new coordinate system. | Reduce the dimensionality of data. | Image compression, Feature extraction. |
---|
t-Distributed Stochastic Neighbor Embedding (t-SNE) | Non-linear dimensionality reduction for visualizing high-dimensional datasets. | Visualize high-dimensional data. | Visualizing clusters in data, Exploring patterns in large datasets. |
---|
Apriori Algorithm | Mines frequent item sets and learns association rules. | Discover association rules in large datasets. | Market basket analysis, Recommender systems. |
---|
Reinforcement Learning Algorithms
Reinforcement learning (RL) involves training an agent to make a sequence of decisions by rewarding it for good actions and punishing it for bad ones. Common Reinforcement Learning Algorithms include:
Reinforcement Learning Algorithms | Description | Purpose | Best Use-Cases |
---|
Q-Learning | RL algorithm that learns the value of an action in a particular state using a Q-table. | Learn optimal actions in a given environment. | Game playing, Robotics. |
---|
Deep Q-Networks (DQN) | Combines Q-learning with deep neural networks for high-dimensional spaces. | Handle complex state spaces. | Autonomous driving, Complex strategy games. |
---|
Actor-Critic Methods | Combine value-based and policy-based approaches to balance exploration and exploitation. | Balance exploration and exploitation. | Real-time strategy games, Dynamic resource allocation. |
---|
Semi-Supervised Learning Algorithms
Semi-supervised learning is a hybrid approach that uses both supervised and unsupervised learning. It uses a small amount of labeled data with a larger amount of unlabeled data to supervise the learning process while extracting patterns from the unlabeled data. This approach is useful when whole labeled data is not available or when we want to train a model for quick adaptions.
For example, in medical analysis we want to diagnose a rare disease as it is rare its data is very limited so we use semi supervised learning to train model on unlabeled data using very few labeled data. Semi-Supervised Learning Algorithms include:
Read More:
Similar Reads
Machine Learning Algorithms 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: Algorith
8 min read
How To Learn Machine Learning in 2025 Machine learning is setting the future in terms of technologies like recommendation systems, virtual assistants and self-driving cars with endless applications making data science, engineers and geeks consider it to be a requirement for them to possess.This easy-to-read guide will give you a head st
15+ min read
Machine Learning Tutorial Machine learning is a branch of Artificial Intelligence that focuses on developing models and algorithms that let computers learn from data without being explicitly programmed for every task. In simple words, ML teaches the systems to think and understand like humans by learning from the data.Machin
5 min read
Machine Learning Roadmap Nowadays, machine learning (ML) is a key tool for gaining insights from complex data and driving innovation in many industries. As more businesses rely on data for decision-making, having machine learning skills is more important than ever. By mastering ML, you can tackle real-world problems and cre
11 min read
Artificial Intelligence (AI) Algorithms Artificial Intelligence (AI) is transforming industries and revolutionizing how we interact with technology. With a rising interest in Artificial Intelligence (AI) Algorithms, weâve created a comprehensive tutorial that covers core AI techniques, aimed at both beginners and experts in the field. The
9 min read
100 Days of Machine Learning - A Complete Guide For Beginners Machine learning is a rapidly growing field within the broader domain of Artificial Intelligence. It involves developing algorithms that can automatically learn patterns and insights from data without being explicitly programmed. Machine learning has become increasingly popular in recent years as bu
10 min read
100 Days of GATE Data Science and AI â A Complete Guide For Beginners This article is an ultimate guide, crafted by the GATE experts at GFG, to help you start your journey of learning for GATE (Graduate Aptitude Test in Engineering) Data Science and AI in 100 Days in a systematic manner.There are many overlaps when it comes to data science and artificial intelligence
6 min read
How to Perform Computational Operations in Octave? In this article, we will see how to perform some basic computational operations in Octave. Below is the list of various computational operations one can perform in Octave to use them in various machine learning algorithms : 1. Matrix Operations : Matrices are the core components of Octave. Let us se
4 min read
GeeksforGeeks Online Tutorials - FREE! Welcome to GeeksforGeeks Online Tutorials! Here, we offer a huge selection of free online tutorials for everyone, no matter your experience level. This tutorials library is a comprehensive hub where you can easily find and access a variety of tutorials including web tutorials, data structures and al
4 min read