Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Python for Machine Learning
  • Machine Learning with R
  • Machine Learning Algorithms
  • EDA
  • Math for Machine Learning
  • Machine Learning Interview Questions
  • ML Projects
  • Deep Learning
  • NLP
  • Computer vision
  • Data Science
  • Artificial Intelligence
Open In App
Next Article:
Machine Learning with R
Next article icon

Machine Learning Algorithms Cheat Sheet

Last Updated : 22 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

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:

  1. Supervised Learning
  2. Unsupervised Learning
  3. Reinforcement Learning
  4. 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:

  1. Linear regression
  2. Logistic regression
  3. Decision trees
  4. Random forest
  5. SVMs
  6. KNN
  7. Naive Bayes
  8. Ensemble learning
Supervised Learning AlgorithmsDescriptionPurposeBest Use-Cases
Linear RegressionPredicts continuous output based on input features.Predict continuous numerical outcomes.Predicting house prices, Forecasting sales or revenue.
Logistic RegressionPredicts probability of input belonging to a certain class.Classify data between two distinct classes.Spam detection, Predicting customer purchases.
Decision TreesSplits data into subsets based on input features.Simplify decision-making processes.Customer segmentation, Diagnosing diseases.
Random ForestEnsemble 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 BayesClassifies 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:

  • k-Means Clustering
  • Hierarchical clustering
  • Principal Component Analysis (PCA)
  • t-Distributed Stochastic Neighbor Embedding (t-SNE)
  • Apriori Algorithm
Unsupervised Learning AlgorithmsDescriptionPurposeBest Use-Cases
k-Means ClusteringPartitions data into k clusters based on nearest mean.Groups similar data points together.Market segmentation, Document clustering.
Hierarchical ClusteringBuilds 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 AlgorithmMines 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:

  • Q-Learning
  • Deep Q-Networks (DQN)
  • Actor-critic methods
Reinforcement Learning AlgorithmsDescriptionPurposeBest Use-Cases
Q-LearningRL 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 MethodsCombine 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:

  • Self-training
  • Co-training

Read More:

  • Machine Learning Tutorial
  • Deep Learning Tutorial
  • Artificial Intelligence Tutorial

Next Article
Machine Learning with R
author
akinrotihgkm
Improve
Article Tags :
  • Data Science
  • Machine Learning
  • Blogathon
  • AI-ML-DS
  • Machine Learning
  • Data Science Blogathon 2024
Practice Tags :
  • Machine Learning
  • Machine Learning

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 s
    15+ min read
  • Flowchart for basic Machine Learning models
    Machine Learning (ML) is a branch of Artificial Intelligence (AI) that allow computers to learn from large amount of data, identify patterns and make decisions. It help them to predict new similar data without explicit programming for each task. A good way to understand how machine learning works is
    4 min read
  • Machine Learning with R
    Machine Learning as the name suggests is the field of study that allows computers to learn and take decisions on their own i.e. without being explicitly programmed. These decisions are based on the available data that is available through experiences or instructions. It gives the computer that makes
    2 min read
  • How Should a Machine Learning Beginner Get Started on Kaggle
    Are you fascinated by Data Science? Do you think Machine Learning is fun? Do you want to learn more about these fields but aren’t sure where to start? Well, start with Kaggle! Kaggle is an online community devoted to Data Scientists and Machine Learning, founded by Google in 2010. It is the largest
    8 min read
  • 5 Machine Learning Projects for Beginners [Source Code]
    Machine learning is a branch of artificial intelligence (AI) that involves developing algorithms and models that enable computers to learn and make predictions or decisions without being explicitly programmed. It focuses on the development of computer programs that can access data and use it to lear
    4 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. It ca
    5 min read
  • NPTEL Machine Learning Course Certification Experience
    Hey Geeks! Embarking on the NPTEL course "Essential Mathematics for Machine Learning" was a pivotal moment in my academic journey. As an aspiring Data Scientist, acquiring a robust mathematical foundation is critical, and this 12-week course provided me exactly that. The journey culminated in a fina
    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
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences