ML Types & Concepts - tech9tel/ai GitHub Wiki

๐Ÿง  ML Types & Concepts

Machine Learning (ML) can be categorized into different types based on how the model learns from data. Each type serves a unique purpose in solving real-world problems.


โœ… Supervised Learning

๐Ÿ“˜ Definition: The model learns from a labeled dataset (input โ†’ output).

๐ŸŽฏ Goal: Predict outputs for new, unseen inputs.

๐Ÿงช Examples:

  • Spam detection in emails
  • Predicting house prices
  • Diagnosing diseases from medical records

๐Ÿ” Popular Algorithms:

  • Linear Regression
  • Decision Trees
  • Support Vector Machines (SVM)
  • k-Nearest Neighbors (k-NN)

๐Ÿ” Unsupervised Learning

๐Ÿ“˜ Definition: The model finds patterns or structure in unlabeled data.

๐ŸŽฏ Goal: Group or reduce data without prior labeling.

๐Ÿงช Examples:

  • Customer segmentation
  • Market basket analysis
  • Topic modeling from articles

๐Ÿ” Popular Algorithms:

  • K-Means Clustering
  • Hierarchical Clustering
  • Principal Component Analysis (PCA)
  • DBSCAN

๐Ÿ† Reinforcement Learning (RL)

๐Ÿ“˜ Definition: The model learns by trial and error using rewards and penalties.

๐ŸŽฏ Goal: Maximize cumulative reward through interactions with an environment.

๐Ÿงช Examples:

  • Game playing (e.g., Chess, Go, Atari)
  • Robotics control
  • Autonomous driving

๐Ÿ” Popular Algorithms:

  • Q-Learning
  • Deep Q-Networks (DQN)
  • Policy Gradient Methods

๐Ÿถ Think of it like training a pet โ€” give a treat for the right action!


๐Ÿคน Self-Supervised & Semi-Supervised Learning

๐Ÿ“˜ Definition:

  • Self-Supervised Learning: Leverages unlabeled data by generating labels from the data itself.
  • Semi-Supervised Learning: Combines a small amount of labeled data with a large amount of unlabeled data.

๐ŸŽฏ Goal: Reduce the need for expensive manual labeling.

๐Ÿงช Examples:

  • Pretraining language models like BERT
  • Image recognition with limited labeled samples

๐Ÿ“Š Summary Table

Type Data Used Goal Example Use Case
Supervised Learning Labeled Data Predict outcomes Email spam classification
Unsupervised Learning Unlabeled Data Find patterns or structure Customer segmentation
Reinforcement Learning Reward Signals Maximize long-term rewards Game playing agents
Self/Semi-Supervised Learning Minimal Labels Learn from limited data NLP pretraining (BERT, GPT)

๐Ÿ“Œ These types form the backbone of ML โ€” choosing the right one depends on the problem, data, and desired outcome.