AWS Builder Center

AWS AI Practitioner Notes #1: AI vs ML vs Generative AI, and How ML Models Learn

My first study notes for AWS AIF-C01: how AI, ML, deep learning and generative AI relate, data types, learning types, and batch vs real-time inference.

This is the first in my weekly series of study notes while preparing for the AWS Certified AI Practitioner (AIF-C01) exam. Today I completed the introduction and the Machine Learning Fundamentals lessons. Here's what I learned, in my own words.

1. AI, ML, Deep Learning and Generative AI: the nested circles

The easiest way to remember the relationship is as circles inside circles:
  • Artificial Intelligence (AI): the biggest circle. Any system that performs tasks that normally need human intelligence, like reasoning, perception or decision-making.
  • Machine Learning (ML): a part of AI where systems learn patterns from data instead of following hand-written rules.
  • Deep Learning: a part of ML that uses multi-layer neural networks, which is powerful for images, audio and text.
  • Generative AI: a part of deep learning that creates new content (text, images, audio, code) instead of only analyzing data.
Key difference: traditional ML mostly predicts or classifies ("Is this email spam?"), while generative AI creates ("Write me an email"). On AWS, examples include text models like Amazon Titan and Anthropic's Claude through Amazon Bedrock, and image models like Stable Diffusion.

2. Everything starts with data

"Garbage in, garbage out." A model can only be as good as its training data, which is why data preparation is one of the most important steps.
Labeled vs unlabeled data
  • Labeled: each example has the correct answer attached (an image tagged "cat").
  • Unlabeled: only the inputs, with no answers (a folder of untagged photos).
Structured vs unstructured data
  • Structured: organized in rows and columns, such as tabular data (CSV, databases) and time-series data (stock prices, sensor readings).
  • Unstructured: no fixed format, such as text, images, audio and video. This usually needs more advanced techniques like deep learning.

3. Three (plus one) ways machines learn

Type
Data used
Goal
Example
Supervised
Labeled
Learn input → output mapping
Spam detection
Unsupervised
Unlabeled
Find hidden patterns or groups
Customer segmentation
Reinforcement
Rewards and penalties
Learn the best actions by trial and error
Game-playing agents, robotics
Semi-supervised
Small labeled + large unlabeled
Reduce labeling cost
Classifying documents when only a few are tagged
From my own research: my solar panel fault detection work was supervised learning, since every training image was labeled with a fault type. My Bengali agricultural QA work also relied on labeled question–answer pairs. Creating good labels was one of the hardest and slowest parts of both projects, which made the "garbage in, garbage out" point very real for me.

4. Inference: using the trained model

After training, using the model to make predictions is called inference. There are two main types:
  • Batch inference: process a large amount of data at once. Speed matters less than throughput and accuracy. Example: analyzing a month of sales data overnight.
  • Real-time inference: respond instantly as new data arrives. Example: chatbots, fraud checks during payment, self-driving cars.
Exam tip I noted: if a question mentions "immediate response" or "low latency", think real-time; if it mentions "large dataset" or "periodic reports", think batch.

5. A note on responsible AI

Even in the intro, AWS highlights that generative AI raises issues around bias, privacy and responsible use. I expect this to be a full exam domain, so I'll cover it in a later note.

What's next

Next week I'll cover deep learning and how neural networks work.
Question for you: what's the best real-world example you've seen of batch vs real-time inference? Share it in the comments; it'll help everyone preparing for AIF-C01.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article