復習シート
Fundamentals of AI and ML
この分野の要点を数画面にまとめました。試験の前に読み返すためのものです。
この復習シートは今のところ英語で表示しています。
1.1Core terms
- AI contains ML, ML contains deep learning, deep learning contains GenAI.
- AI is not always learning: a fixed set of rules is also AI.
- Model: what training produced. Algorithm: the learning method.
- Training builds the model. Inferencing uses it on new data.
- Neural network: neurons in layers, linked by weights. Deep means many layers.
- NLP works on language. Computer vision works on images and video.
- GenAI creates content. Classic ML predicts a label or a number.
- Agent: plans, uses tools and acts. A chatbot only replies.
- Overfitting: great on training data, poor on new data. Underfitting: too simple.
1.1Core terms
- Bias: skewed results, often from skewed data. Fairness: similar quality for all groups.
AI
- Software that does tasks that need human intelligence
Machine learning
- A model learns patterns from data, then predicts
Deep learning
- ML with neural networks that have many layers
Generative AI
- Deep learning that creates new text, images or code
Agentic AI
- Plans and uses tools to reach a goal
| Term | In one line |
|---|---|
| AI | Software that does tasks that need human intelligence |
| Machine learning | A model learns patterns from data, then predicts |
| Deep learning | ML with neural networks that have many layers |
| Generative AI | Deep learning that creates new text, images or code |
| Agentic AI | Plans and uses tools to reach a goal |
1 / 2
AI
- Software that does tasks that need human intelligence
Machine learning
- A model learns patterns from data, then predicts
Deep learning
- ML with neural networks that have many layers
Generative AI
- Deep learning that creates new text, images or code
| Term | In one line |
|---|---|
| AI | Software that does tasks that need human intelligence |
| Machine learning | A model learns patterns from data, then predicts |
| Deep learning | ML with neural networks that have many layers |
| Generative AI | Deep learning that creates new text, images or code |
2 / 2
Agentic AI
- Plans and uses tools to reach a goal
| Term | In one line |
|---|---|
| Agentic AI | Plans and uses tools to reach a goal |
1.1Inference, data and learning
- Real-time: instant answers, model always running.
- Serverless: instant answers, pay only when used, good for idle gaps.
- Asynchronous: large payloads or long jobs, result comes later.
- Batch: a whole dataset at once, no one waits.
- Tabular: rows and columns. Time-series: values in time order.
- Labeled data has the answer attached. Unlabeled data does not.
- Structured data has a fixed layout. Images, text and audio are unstructured.
- Supervised: labeled data, known outcomes.
- Unsupervised: no labels, finds groups. Reinforcement: reward and penalty.
Real-time
- Instant answers, steady traffic
Serverless
- Instant answers, uneven traffic, idle gaps
Asynchronous
- Large inputs, long jobs, result later
Batch
- A whole dataset at once, nobody waits
| Type | Choose it for |
|---|---|
| Real-time | Instant answers, steady traffic |
| Serverless | Instant answers, uneven traffic, idle gaps |
| Asynchronous | Large inputs, long jobs, result later |
| Batch | A whole dataset at once, nobody waits |
1.1Data, tuning and model names
- Training set: the model learns. Validation set: compare settings. Test set: final check on unseen data.
- Feature: an input. Label: the answer. Feature engineering: create, transform and select features.
- Hyperparameter: a setting chosen before training. Weights are learned.
- Common hyperparameters: learning rate, batch size, epochs, regularization.
- Overfitting fixes: more data, early stopping, regularization, a simpler model.
- Underfitting fixes: train longer, add features, use a bigger model.
- Self-supervised: the model makes its own labels. Foundation models pre-train this way.
- Semi-supervised: a few labels plus much unlabeled data.
CNN, ResNet
- Image tasks
RNN
- Sequences, older text and speech models
GPT
- Generates text and code
BERT
- Understands text
GAN
- Two networks compete to make realistic data
WaveNet
- Generates raw audio for speech
XGBoost
- Tree-based model for tabular data
| Model | What it is for |
|---|---|
| CNN, ResNet | Image tasks |
| RNN | Sequences, older text and speech models |
| GPT | Generates text and code |
| BERT | Understands text |
| GAN | Two networks compete to make realistic data |
| WaveNet | Generates raw audio for speech |
| XGBoost | Tree-based model for tabular data |
1 / 2
CNN, ResNet
- Image tasks
RNN
- Sequences, older text and speech models
GPT
- Generates text and code
BERT
- Understands text
| Model | What it is for |
|---|---|
| CNN, ResNet | Image tasks |
| RNN | Sequences, older text and speech models |
| GPT | Generates text and code |
| BERT | Understands text |
2 / 2
GAN
- Two networks compete to make realistic data
WaveNet
- Generates raw audio for speech
XGBoost
- Tree-based model for tabular data
| Model | What it is for |
|---|---|
| GAN | Two networks compete to make realistic data |
| WaveNet | Generates raw audio for speech |
| XGBoost | Tree-based model for tabular data |
1.2Use cases and techniques
- AI adds value by assisting decisions, scaling and automating.
- Named use cases: vision, NLP, speech, recommendations, fraud, forecasting, knowledge bases, agents.
- Do not use ML when a fixed rule gives the exact answer.
- Do not use ML with too little data, or when cost is larger than benefit.
- Regression predicts a number. Classification predicts a category.
- Clustering finds groups without labels. Forecasting predicts values over time.
- Traditional ML: narrow task, easier to explain, cheaper per request.
- Foundation model: many open tasks, little labeled data, harder to explain.
- Strict regulation or required explanations point to traditional ML.
1.2AWS AI services
- Pre-trained AI services need no ML skills: send data, get results.
- SageMaker AI is for building your own models. It was called Amazon SageMaker.
- SageMaker AI parts: Studio, Canvas (no code), Ground Truth (labels), endpoints, Model Monitor, Model Cards.
- Transcribe: audio in, text out. Polly: text in, speech out.
- Lex uses intents and slots to build bots. An utterance is what the user says.
- Comprehend: sentiment, entities, key phrases, language, personal data.
- Rekognition reads pictures and video. Textract reads documents.
- Personalize needs your interaction data, such as clicks and purchases.
Turn speech into text
Turn text into speech
Translate text
Find sentiment and entities in text
Build a chatbot or voice bot
Find objects and faces in images and video
Read forms and tables in scanned documents
Recommend items to users
Build, train and deploy your own model
| You need to | AWS service |
|---|---|
| Turn speech into text | |
| Turn text into speech | |
| Translate text | |
| Find sentiment and entities in text | |
| Build a chatbot or voice bot | |
| Find objects and faces in images and video | |
| Read forms and tables in scanned documents | |
| Recommend items to users | |
| Build, train and deploy your own model |
1 / 3
Turn speech into text
Turn text into speech
Translate text
Find sentiment and entities in text
| You need to | AWS service |
|---|---|
| Turn speech into text | |
| Turn text into speech | |
| Translate text | |
| Find sentiment and entities in text |
2 / 3
Build a chatbot or voice bot
Find objects and faces in images and video
Read forms and tables in scanned documents
Recommend items to users
| You need to | AWS service |
|---|---|
| Build a chatbot or voice bot | |
| Find objects and faces in images and video | |
| Read forms and tables in scanned documents | |
| Recommend items to users |
3 / 3
Build, train and deploy your own model
| You need to | AWS service |
|---|---|
| Build, train and deploy your own model |
1.2Search, review and healthcare AI
- Kendra: search documents with natural-language questions. Closed to new customers since July 30, 2026.
- New RAG builds use Amazon Bedrock Knowledge Bases instead of Kendra.
- A2I: people review low-confidence predictions. Built in for Textract and Rekognition. Closed to new customers, but exams may still name it.
- A2I reviews live predictions. Ground Truth labels training data.
- Comprehend Medical, Transcribe Medical and HealthScribe are HIPAA eligible.
Search company documents by question
Human review of uncertain predictions
Medical facts and PHI from clinical text
- Amazon Comprehend Medical
Medical speech to text
- Amazon Transcribe Medical
Draft clinical notes from a visit
- AWS HealthScribe
| You need to | AWS service |
|---|---|
| Search company documents by question | |
| Human review of uncertain predictions | |
| Medical facts and PHI from clinical text | Amazon Comprehend Medical |
| Medical speech to text | Amazon Transcribe Medical |
| Draft clinical notes from a visit | AWS HealthScribe |
1 / 2
Search company documents by question
Human review of uncertain predictions
Medical facts and PHI from clinical text
- Amazon Comprehend Medical
Medical speech to text
- Amazon Transcribe Medical
| You need to | AWS service |
|---|---|
| Search company documents by question | |
| Human review of uncertain predictions | |
| Medical facts and PHI from clinical text | Amazon Comprehend Medical |
| Medical speech to text | Amazon Transcribe Medical |
2 / 2
Draft clinical notes from a visit
- AWS HealthScribe
| You need to | AWS service |
|---|---|
| Draft clinical notes from a visit | AWS HealthScribe |
1.3Pipeline, sources and MLOps
- Pipeline: collect, prepare, engineer features, train, tune, evaluate, deploy, monitor.
- Evaluate on data the model did not train on.
- Monitoring feeds back into new data and retraining.
- FM sources: provider model by API, open source pre-trained model, custom model.
- More you do yourself means more control, more cost and more effort.
- Managed API: the provider runs the servers. Self-hosted API: you run them.
- MLOps: experiments, repeatable steps, scalable systems, low technical debt, production readiness.
- Drift: live data changes and accuracy falls. Monitor, then retrain.
Prepare, train, tune, monitor
Choose and use a foundation model by API
Write application code with AI help
Staff use AI on company data
| Stage | AWS service |
|---|---|
| Prepare, train, tune, monitor | |
| Choose and use a foundation model by API | |
| Write application code with AI help | Kiro |
| Staff use AI on company data |
1.3SageMaker AI tools and data services
- Studio is the ML workspace. Canvas builds models with no code.
- Data Wrangler prepares data visually. It now lives in Canvas.
- Feature Store: online store for live use, offline store for training.
- Automatic model tuning searches for good hyperparameters.
- Pipelines automate the workflow. Model Registry approves versions for deployment.
- Model Monitor finds drift. Model Dashboard gives one view of all models.
- Ground Truth, Model Monitor and Role Manager: closed to new customers since July 30, 2026.
- Glue (ETL), DataBrew (clean), EMR (big data), Redshift (warehouse), Data Exchange (third-party data).
Data Wrangler
- Prepare data visually
Feature Store
- Store and reuse features
Ground Truth
- Label data with human workers
Pipelines
- Automate the ML workflow
Model Registry
- Catalog and approve model versions
Model Monitor
- Watch deployed models for drift
Role Manager
- Least-privilege roles for ML staff
| Tool | Job |
|---|---|
| Data Wrangler | Prepare data visually |
| Feature Store | Store and reuse features |
| Ground Truth | Label data with human workers |
| Pipelines | Automate the ML workflow |
| Model Registry | Catalog and approve model versions |
| Model Monitor | Watch deployed models for drift |
| Role Manager | Least-privilege roles for ML staff |
1 / 2
Data Wrangler
- Prepare data visually
Feature Store
- Store and reuse features
Ground Truth
- Label data with human workers
Pipelines
- Automate the ML workflow
| Tool | Job |
|---|---|
| Data Wrangler | Prepare data visually |
| Feature Store | Store and reuse features |
| Ground Truth | Label data with human workers |
| Pipelines | Automate the ML workflow |
2 / 2
Model Registry
- Catalog and approve model versions
Model Monitor
- Watch deployed models for drift
Role Manager
- Least-privilege roles for ML staff
| Tool | Job |
|---|---|
| Model Registry | Catalog and approve model versions |
| Model Monitor | Watch deployed models for drift |
| Role Manager | Least-privilege roles for ML staff |
1.3Metrics
- Accuracy misleads when one class is rare.
- Precision: of the flagged items, how many were right.
- Recall: of the real cases, how many were found.
- F1 score balances precision and recall in one number.
- Fraud and disease: favor recall. Spam: favor precision.
- AUC-ROC: 0.5 is guessing, 1 is perfect.
- Predicting a number: MAE, RMSE and MAPE (lower is better), R squared (closer to 1).
- Business metrics: cost per user, development cost, customer feedback, ROI.
- ROI compares the gain with the total cost.
1.3Metrics
- An accurate model can still fail on cost, speed or customer trust.
Accuracy
- Asks
- How many predictions were right?
- Favor it when
- Classes are balanced
Precision
- Asks
- Of the flagged, how many were right?
- Favor it when
- False alarms are costly
Recall
- Asks
- Of the real cases, how many were found?
- Favor it when
- Missing a case is costly
F1 score
- Asks
- How good is the balance of both?
- Favor it when
- You need both
AUC-ROC
- Asks
- How well are the two classes separated?
- Favor it when
- 0.5 is guessing, 1 is perfect
MAE, RMSE, MAPE
- Asks
- How big is the error on a number?
- Favor it when
- Predicting a number. Lower is better
R squared
- Asks
- How much of the change is explained?
- Favor it when
- Closer to 1 is better
| Metric | Asks | Favor it when |
|---|---|---|
| Accuracy | How many predictions were right? | Classes are balanced |
| Precision | Of the flagged, how many were right? | False alarms are costly |
| Recall | Of the real cases, how many were found? | Missing a case is costly |
| F1 score | How good is the balance of both? | You need both |
| AUC-ROC | How well are the two classes separated? | 0.5 is guessing, 1 is perfect |
| MAE, RMSE, MAPE | How big is the error on a number? | Predicting a number. Lower is better |
| R squared | How much of the change is explained? | Closer to 1 is better |
1 / 3
Accuracy
- Asks
- How many predictions were right?
- Favor it when
- Classes are balanced
Precision
- Asks
- Of the flagged, how many were right?
- Favor it when
- False alarms are costly
Recall
- Asks
- Of the real cases, how many were found?
- Favor it when
- Missing a case is costly
| Metric | Asks | Favor it when |
|---|---|---|
| Accuracy | How many predictions were right? | Classes are balanced |
| Precision | Of the flagged, how many were right? | False alarms are costly |
| Recall | Of the real cases, how many were found? | Missing a case is costly |
2 / 3
F1 score
- Asks
- How good is the balance of both?
- Favor it when
- You need both
AUC-ROC
- Asks
- How well are the two classes separated?
- Favor it when
- 0.5 is guessing, 1 is perfect
| Metric | Asks | Favor it when |
|---|---|---|
| F1 score | How good is the balance of both? | You need both |
| AUC-ROC | How well are the two classes separated? | 0.5 is guessing, 1 is perfect |
3 / 3
MAE, RMSE, MAPE
- Asks
- How big is the error on a number?
- Favor it when
- Predicting a number. Lower is better
R squared
- Asks
- How much of the change is explained?
- Favor it when
- Closer to 1 is better
| Metric | Asks | Favor it when |
|---|---|---|
| MAE, RMSE, MAPE | How big is the error on a number? | Predicting a number. Lower is better |
| R squared | How much of the change is explained? | Closer to 1 is better |
試験のひっかけ
- “Learns from data instead of written rules” → machine learning, not plain AI rules
- “Creates new text, images or code” → generative AI, not classic ML
- “Overfitting” → great on training data, poor on new data, not underfitting
- “Unpredictable traffic, long idle periods” → serverless inference, not real-time
- “Large input, result may wait” → asynchronous inference, not batch
- “Group customers without labels” → clustering, not classification
- “Same exact result every time” → write a rule, not an ML model
試験のひっかけ
- “Text to speech” → Amazon Polly, not Transcribe
- “Forms and tables in scanned documents” → Amazon Textract, not Rekognition
- “Objects or faces in images” → Amazon Rekognition, not Textract
- “Missing a fraud case is costly” → recall, not precision
- “Model accuracy falls as real data changes” → drift: monitor and retrain
- “A setting chosen before training” → hyperparameter, not a weight
- “Final check on unseen data” → test set, not validation set
- “Predict a price” → judge it with MAE or RMSE, not accuracy
試験のひっかけ
- “Human review of low-confidence predictions” → Amazon A2I, not Ground Truth
- “Draft clinical notes from a visit” → AWS HealthScribe, not Comprehend Medical