Chuyển đến nội dung chính

Lesson 11: Comprehensive Cheat Sheet

Full course summary: SageMaker algorithms, AWS AI services, evaluation metrics, important formulas, and common exam traps.

📝 Exam Prep — Lesson 11 Lesson 11: Comprehensive Cheat Sheet

AWS Certified Machine Learning - Specialty Exam Prep

Part 4: Review & Exam Strategy

xdev.asia

1. SageMaker Built-in Algorithms Master Table

AlgorithmTypeBest ForInput
XGBoostSupervised (C/R)Tabular data, competitionsCSV, LibSVM
Linear LearnerSupervised (C/R)High-dimensional, fastCSV, RecordIO
Random Cut ForestUnsupervisedAnomaly detectionCSV, RecordIO
K-MeansUnsupervisedCustomer segmentationCSV, RecordIO
PCADimensionality ReductionFeature reductionCSV, RecordIO
Factorization MachinesSupervised (C/R)Sparse data, recommendationsRecordIO only
DeepAR+SupervisedTime series forecastingJSON Lines
BlazingTextSupervised / UnsupervisedText classification, word2vecText files
Object2VecSupervisedSemantic similarityJSON Lines
Image ClassificationSupervisedImage labelsRecordIO, raw images
Object DetectionSupervisedBounding boxesRecordIO, JSON
Semantic SegmentationSupervisedPixel-level classificationImages + masks
LDAUnsupervisedTopic modelingCSV, RecordIO
NTMUnsupervisedNeural topic modelingCSV, RecordIO
IP InsightsUnsupervisedIP address anomalyCSV

2. AWS AI Services — No-Code ML

ServicePurposeOutput
Amazon RekognitionImage/video analysisLabels, faces, text, moderation
Amazon TextractDocument extractionText, forms, tables
Amazon ComprehendNLP, text analyticsEntities, sentiment, topics
Amazon TranslateMachine translationTranslated text
Amazon TranscribeSpeech to textTranscription, subtitles
Amazon PollyText to speechAudio
Amazon LexConversational AI (chatbot)Intent, slots
Amazon KendraIntelligent searchAnswers, documents
Amazon PersonalizeRecommendationsItem rankings, user recs
Amazon ForecastTime series forecastingPredictions + confidence
Amazon Lookout for VisionVisual anomaly (manufacturing)Pass/Fail, anomaly map
Amazon Lookout for EquipmentEquipment anomaly (IoT)Anomaly scores

3. Evaluation Metrics Quick Reference

MetricFormulaUse When
Accuracy(TP+TN)/(TP+TN+FP+FN)Balanced classes
PrecisionTP/(TP+FP)FP is costly (spam filter)
Recall (Sensitivity)TP/(TP+FN)FN is costly (cancer diagnosis)
F1 Score2×(P×R)/(P+R)Imbalanced classes
AUC-ROCArea under TPR vs FPR curveOverall classifier quality
RMSE√(Σ(yᵢ-ŷᵢ)²/n)Regression, penalizes outliers
MAEΣ|yᵢ-ŷᵢ|/nRegression, robust to outliers
MAPEΣ|yᵢ-ŷᵢ|/|yᵢ| × 100%Forecasting, interpretable %

4. Common Exam Traps

TrapWhat the Exam SaysCorrect Answer
Imbalanced data + accuracy"Model has 99% accuracy" (fraud)Use Precision/Recall/F1, not accuracy
FM input formatFactorization MachinesRequires RecordIO ONLY (not CSV)
Managed vs custom"quickest to implement"Prefer managed (Personalize, Forecast)
Overfitting fixTraining accuracy high, validation lowRegularization (L1/L2) or more data
SageMaker + Internet"secure environment, no internet"VPC + Network Isolation + VPC Endpoints
Ground Truth labeling"reduce labeling cost"Auto-labeling (active learning) in GT
Bias in model"identify bias before deployment"SageMaker Clarify
Multiple models behind one endpoint"save cost, single endpoint"Multi-Model Endpoint (MME)

5. Data / Storage Quick Reference

ScenarioBest Choice
Large tabular training dataS3 + CSV or Parquet; RecordIO for SageMaker
Real-time streaming data ingestionKinesis Data Streams → Firehose → S3
Ad-hoc SQL queries on S3 dataAmazon Athena
ETL transformation → Feature StoreAWS Glue (Spark ETL) → SageMaker Feature Store
Business intelligence / dashboardsAmazon QuickSight
Data warehouse for ML featuresAmazon Redshift → ML (Redshift ML)

Exam tip: Remember: when the question says "fastest / easiest / no code" → AWS Managed AI Service. When it says "custom model / flexibility / bring your own" → SageMaker. This is the most important decision boundary.