Cert Notes/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
SCS-C03 · SpecialtySecurity - Specialty
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
  • Week 1
    • 1.The Relationship and Differences Between AI, Machine Learning, and Deep Learning
    • 2.Learning Types: Supervised, Unsupervised, and Reinforcement Learning
    • 3.Problems Where ML Fits vs. Problems Where It Doesn't
    • 4.Key Terms: Model, Training, Inference, Feature, Label, Overfitting
    • 5.Week 1 Wrap-Up: AI/ML Fundamentals Review
  • Week 2
    • 1.ML Lifecycle Overview: One Complete Cycle from Data to Operations
    • 2.Data: Structured vs Unstructured, Data Splitting, and the Power of Quality
    • 3.Model Evaluation Basics: Accuracy, Precision, Recall, and Overfitting/Underfitting
    • 4.The Human Role in ML Development: Labeling, Feedback, and Iterative Improvement
    • 5.Week 2 Summary: ML Lifecycle and Data at a Glance
  • Week 3
    • 1.What Is Generative AI: Difference from Traditional ML, and Foundation Models
    • 2.How LLMs Work: Tokens, Embeddings, Context Window, and Inference
    • 3.Prompt Engineering Basics: Good Prompts, Zero/Few-shot, and Limitations
    • 4.Limitations and Risks of Generative AI: Hallucinations, Bias, Non-determinism, and Appropriate Use Cases
    • 5.Week 3 Comprehensive Review: Wrapping Up Generative AI Fundamentals at a Glance
  • Week 4
    • 1.Amazon Bedrock: Fully Managed Service for Renting Foundation Models
    • 2.Amazon SageMaker: A Platform for Directly Training and Deploying ML Models
    • 3.AWS AI Services (1): Managed APIs Handling Images, Documents, Text, and Speech
    • 4.AWS AI Services (2) + Amazon Q: Chatbots, Search, Recommendations, Forecasting, and Generative Assistant
    • 5.Week 4 Comprehensive Review: Complete Map of AWS AI/ML Services
  • Week 5
    • 1.Principles of Responsible AI: Fairness, Bias, Transparency, Explainability, Robustness, Privacy
    • 2.AWS's Responsible AI Tools: SageMaker Clarify, Model Monitor, Bedrock Guardrails, AI Service Cards
    • 3.AI Security: Least Privilege IAM, Data Encryption, PII Protection, PrivateLink, Shared Responsibility Model
    • 4.Data Governance and Compliance: Data Origin·Quality, Model Governance, Audit·Logging, Legal and Ethical Considerations for Generative AI
    • 5.Week 5 Comprehensive Review: Binding Responsible AI·Security·Governance into One
  • Week 6
    • 1.Domain Review 1: AI/ML Fundamentals + Generative AI Fundamentals: Critical Summary
    • 2.Domain Review 2: Foundation Model Applications (AWS AI Services) Critical Summary
    • 3.Domain Review 3: Responsible AI + Security·Governance Critical Summary
    • 4.Full Mock Exam Pace: Five Domains Comprehensive Questions
    • 5.D-Day Wrap-Up: Exam Structure, Keyword → Service Translation Table, Frequently-Missed Traps
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
← AIF-C01/Week 1/Day 2
AIF-C01· AssociateWeek 1 · Day 2~16 min read

Day 2 - Learning Types: Supervised, Unsupervised, and Reinforcement Learning

Introduction

Yesterday we looked at the relationship between AI, machine learning, and deep learning. Today we will learn the three major learning types into which machine learning is divided based on "how it learns."

  • Supervised Learning
  • Unsupervised Learning
  • Reinforcement Learning

These three appear frequently on the exam, and the key differences are "whether there are answers (labels)" and "how the learning signal is received." We will also cover basic task concepts such as classification, regression, and clustering.

Learning Types at a Glance

Learning typeAnswers (labels)Key questionRepresentative tasks
Supervised learningPresent"How do we learn to predict when the answers are known?"Classification, regression
Unsupervised learningAbsent"How do we find hidden structure without answers?"Clustering, dimensionality reduction
Reinforcement learningReplaced by rewards"How do we learn the best actions through trial and error?"Control, games, robotics

1. Supervised Learning

Supervised learning trains on data where inputs and answers (labels) are given together. Think of it as a "teacher teaching while providing the correct answers."

For example, if you train a model on dog/cat photos each labeled "dog" or "cat," the model learns to predict which one a new photo shows.

Supervised learning is broadly divided into two types.

Classification

Used when the answer is one of a fixed set of categories (kinds). The output is categorical, like "is it this or that?"

  • Is an email spam or not (2 categories)
  • Is the animal in the photo a dog, cat, or bird (multiple categories)
  • Is a credit card transaction legitimate or fraudulent

Regression

Used when the answer is a continuous numeric value. The output is a quantity, like "how much?"

  • What will tomorrow's temperature be
  • What is the estimated price of this house
  • What will next month's revenue be

💡 Related theory: The easiest criterion for distinguishing classification from regression is "is the output a category or a number?" "Spam/legitimate" is classification; "price prediction" is regression.

2. Unsupervised Learning

Unsupervised learning finds hidden structure or patterns on its own in data without answers (labels). The approach is "organize the data without an answer key."

Clustering

The task of automatically grouping similar data together. It differs from classification in that there are no predefined answer groups.

  • Automatically grouping customers into similar segments by purchasing tendency
  • Automatically grouping news articles by topic

For example, if you say "divide the customers into 3 groups," unsupervised learning groups similar people together without ever being told in advance who belongs to which group.

Dimensionality Reduction

When data has too many features (variables), this task reduces the number of variables while preserving as much important information as possible. It simplifies the data and makes it easier to visualize.

💡 Related theory: Classification (supervised) and clustering (unsupervised) are easy to confuse because "both divide things into groups." The decisive difference is the presence or absence of answer labels. Classification assigns to groups with known answers; clustering groups similar items together without answers.

3. Reinforcement Learning

Reinforcement learning learns through trial and error and rewards. Instead of being given answers directly, the agent receives a reward when an action's outcome is good and a penalty when it is bad, gradually learning better behavior. It is similar to "training a dog by giving treats when it does well."

The core components are as follows.

TermMeaningAnalogy
AgentThe entity that learns and actsGame player
EnvironmentThe world the agent interacts withGame screen
ActionThe choice the agent makesPressing a button
RewardA score for the action (good/bad)Gaining/losing points

Representative examples include game AI (Go, chess), robot control, and autonomous driving control.

💡 Related theory: Reinforcement learning has no prepared answer data. Instead, the agent learns an action strategy that maximizes the rewards it receives while interacting with the environment. This is fundamentally different from supervised/unsupervised learning.

Comparing the Three Learning Types with Examples

Even with the same "customer data," the learning type differs depending on the objective.

ObjectiveLearning typeReason
Predicting whether a customer will churn (yes/no)Supervised learning (classification)Learns from past churn outcomes (answers)
Predicting this customer's spending next monthSupervised learning (regression)Predicts a numeric value
Grouping similar customers togetherUnsupervised learning (clustering)Groups by similarity without answers
Learning the optimal recommendation order per customer via rewardsReinforcement learningLearns a strategy through trial and error and rewards

Today's Summary

  • Machine learning's learning types are divided into supervised, unsupervised, and reinforcement learning.
  • Supervised learning has answers (labels) and is divided into classification (category prediction) and regression (number prediction).
  • Unsupervised learning has no answers; clustering and dimensionality reduction are its representative tasks.
  • Reinforcement learning learns optimal actions through trial and error driven by rewards.
  • Be sure to remember that the difference between classification and clustering is "the presence or absence of answer labels."

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which approach trains a model on input data given together with answers (labels), so that the model learns to predict those answers?

Question 2

You want to take inputs such as a house's floor area and number of rooms and predict its "expected sale price (a numeric amount)." Which task is most appropriate?

Question 3

You want to automatically group customers with similar tendencies from customer data that has no answer labels at all. Which task is most suitable?

Question 4

Which statement best describes how reinforcement learning works?

Question 5

What is the most essential difference between classification (supervised learning) and clustering (unsupervised learning)?

PreviousThe Relationship and Differences Between AI, Machine Learning, and Deep LearningWeek 1 · Day 1Next Problems Where ML Fits vs. Problems Where It Doesn'tWeek 1 · Day 3

On this page

  • Introduction
  • Learning Types at a Glance
  • 1. Supervised Learning
  • Classification
  • Regression
  • 2. Unsupervised Learning
  • Clustering
  • Dimensionality Reduction
  • 3. Reinforcement Learning
  • Comparing the Three Learning Types with Examples
  • Today's Summary
  • Practice Questions