Based on the MLS-C01 exam guideReport an error
The first decision in modeling is "which algorithm to use," and before it there must always come the translation of the ML problem type. Exam passages almost always give the problem in business language, so converting it into a standard ML type is step 1.
"Identify customers who will churn in advance" → binary classification (churn yes/no)
"Sort email into spam / normal / promotional" → multiclass classification
"Predict tomorrow's sales amount" → regression
"Automatically discover groups of similar users" → clustering (unsupervised)
"Recommend products never seen before" → recommendation / collaborative filtering
"Detect transactions that differ from the usual" → anomaly detection
"Discover topics in a pile of documents" → topic modeling (unsupervised)There are three discriminating signals.
The boundary between supervised, unsupervised, and reinforcement is drawn by "the existence of answer labels." Classification and regression are supervised learning that learns input-output pairs, while clustering, dimensionality reduction, topic modeling, and (mostly) anomaly detection are unsupervised learning that finds structure without labels. Recommendation deals with a user-item interaction matrix and is closer to unsupervised from the collaborative filtering viewpoint, but if you use explicit ratings as the target it can also be viewed as supervised (regression). Reinforcement learning is a separate category that learns a policy from a reward signal (SageMaker RL).
[Business problem passage]
│
┌─────── Are there labels? ───────┐
Yes (supervised) No (unsupervised)
│ │
┌───── Output form? ─────┐ ┌──── What do you want to do? ────┐
Category Number Rank/preference Find groups Anomaly Reduce dim Find topics
│ │ │ │ │ │ │
Classification Regression Recommendation K-Means RCF / PCA LDA / NTM
│ │ │ IP Insights
┌──┴──┐ ┌───┴───┐ Factorization
Tabular Text Tabular Time series Machines
│ │ │ │
XGBoost │ XGBoost DeepAR
Linear │ Linear
KNN BlazingText
│
Image → Image Classification
When the output is a discrete category. It splits into binary, multiclass, and multilabel.
| Subtype | Example | Representative algorithm |
|---|---|---|
| Binary classification | Churn or not, fraud or not | XGBoost, Linear Learner, KNN |
| Multiclass classification | Product category classification | XGBoost, Linear Learner |
| Multilabel | Multiple tags on one image | Neural networks, Image Classification |
| Text classification | Sentiment/topic classification | BlazingText |
predictor_type (Linear Learner) or objective (XGBoost).When the output is a continuous number. Predicting sales amount, price, demand quantity, and so on.
Groups data into natural clusters without labels. Customer segmentation, document grouping.
Predicts preferences from user-item interactions.
Finds rare events that deviate from normal. It is commonly approached as an unsupervised problem with almost no labels.
There is a trap: "Can't we solve anomaly detection as classification?" If there are enough anomaly labels and the patterns are stable, supervised classification is also possible, but in reality anomalies are extremely few and keep changing into new forms. In that case, unsupervised anomaly detection (RCF and the like), which learns only normal behavior and measures deviation, is more robust. On the exam, if you see the clue "almost no labels / new forms of anomaly," the RCF family is more likely to be the right answer than classification.
| Problem type | Supervised / unsupervised | SageMaker built-in candidates | When to use | When not to use |
|---|---|---|---|---|
| Tabular classification/regression | Supervised | XGBoost, Linear Learner | Structured features, labels available | When the data is raw text or images |
| Distance-based classification/regression | Supervised | KNN | When "the most similar case" is the answer | When dimensionality is very high or inference latency matters |
| Clustering | Unsupervised | K-Means | Discover segments without labels | When answer labels to predict already exist |
| Recommendation (sparse interactions) | Supervised/unsupervised | Factorization Machines | Sparse high dimensions blown up by one-hot encoding | Small dense tabular data |
| Text classification/embedding | Supervised/unsupervised | BlazingText | Document classification, word vectors | Numeric structured data |
| Image classification | Supervised | Image Classification | Image → label | When object location is also needed (Object Detection) |
| Time-series forecasting | Supervised | DeepAR | Many related time series, probabilistic forecasts | Simple regression where the time axis is meaningless |
| Anomaly detection | Unsupervised | Random Cut Forest, IP Insights | Rare events without labels | When anomaly labels are plentiful and the patterns are fixed |
| Dimensionality reduction | Unsupervised | PCA | Hundreds of correlated features | When interpretable original features are essential |
| Topic modeling | Unsupervised | LDA, NTM | Discover topics in documents | When category labels already exist (classification) |
| Metric | Calculation | What a high value means | Situation to prioritize | Pitfall |
|---|---|---|---|---|
| Accuracy | (TP+TN)/total | Right often overall | Only when classes are balanced | On imbalanced data, "all negative" still gets 99%+ |
| Precision | TP/(TP+FP) | Few false alarms | False-alarm cost is high (spam blocking, marketing) | Easy to raise by predicting only a few as positive |
| Recall | TP/(TP+FN) | Few misses | Miss cost is high (fraud, disease) | Predicting everything as positive gives 1.0 |
| F1 | Harmonic mean of precision and recall | Good balance of the two | When the two costs are similar | Hides which side is the problem |
| ROC-AUC | Area under the TPR-FPR curve | Threshold-independent discriminative power | Threshold undecided, comparing models | Overly optimistic under extreme imbalance |
| PR-AUC | Area under the precision-recall curve | Discriminative power for the minority class | Extreme imbalance (positives under 1%) | The value changes when the class ratio changes |
| RMSE | Square root of the mean squared error | Few large errors | Regression, when you want to penalize large errors heavily | Sensitive to outliers |
| MAE | Mean absolute error | Small average error | Regression, when robustness to outliers is needed | Treats large errors leniently |
⚠️ Pitfall: If the passage says "fraud is 1% of the total," any answer choice that includes accuracy is wrong. Even guessing everything as normal yields 99%. In this case the answer shifts to recall (we cannot afford to miss) or PR-AUC.
Even with the same problem type, preprocessing requirements differ. The exam repeatedly asks "is scaling needed?"
| Algorithm family | Representative built-in | Scaling | Categorical encoding | Missing values |
|---|---|---|---|---|
| Tree boosting | XGBoost | Not needed (scale-invariant) | Numeric conversion needed | Can handle internally |
| Linear model | Linear Learner | Needed (normalization option provided) | Needed | Pre-processing needed |
| Distance-based | KNN, K-Means | Mandatory | Needed | Pre-processing needed |
| Variance-based | PCA | Needed (centering and scaling recommended) | Needed | Pre-processing needed |
| Text | BlazingText | Not applicable (token input) | Not applicable | Not applicable |
Trees split by thresholds within a single feature, so the result is the same as long as only the order of values is preserved (invariance to monotonic transformations). Distance-based and linear models, on the other hand, feed feature values directly into distance and slope calculations, so scale differences distort the result directly. This single line separates every scaling question.
Selection does not end with the problem type.
| Axis to consider | Question to check | Effect on selection |
|---|---|---|
| Data form | Is it tabular, text, image, or time series? | Constrains the algorithm family most strongly |
| Data size and sparsity | Hundreds of millions of rows? Blown up by one-hot encoding? | Very large and sparse → Linear Learner/FM; medium-sized structured → XGBoost |
| Interpretability | Is an explanation needed for regulation or review? | Linear models are favorable (coefficient interpretation) |
| Training and inference cost | Is there a GPU and time budget? | Deep learning costs more. Avoid an overkill model for a simple problem (KISS) |
| Online/real-time requirement | Must you decide immediately on a stream? | Real-time anomaly detection is Kinesis Data Analytics RCF |
| Cold start | Are there new items or short histories? | DeepAR, which shares learning across related time series, is favorable |
If the passage says "no ML specialists," "launch quickly," or "we do not want to train and manage models ourselves," the answer is not a built-in algorithm but a higher-level AI service.
| Situation | SageMaker built-in path | Managed AI service path |
|---|---|---|
| Document sentiment and entity extraction | Train directly with BlazingText | Amazon Comprehend |
| Image labeling and face recognition | Train Image Classification | Amazon Rekognition |
| Time-series demand forecasting | Train and tune DeepAR | Amazon Forecast |
| Personalized product recommendation | Train Factorization Machines | Amazon Personalize |
| Custom features and full control needed | Built-in or your own container | Unsuitable (limits on customization) |
⚠️ Pitfall: There is a trap in the opposite direction too. If the passage says "we need to blend in our domain-specific features and tune it precisely," choosing a managed AI service is wrong. The required level of control separates the two paths.
The fastest exam tip is to memorize a dictionary of "passage phrase → candidate algorithm."
| Passage clue | Direction it points | Reason |
|---|---|---|
| "The output is a category / yes-or-no" | Classification (XGBoost, Linear Learner) | Output form determines the type |
| "Predict an amount or quantity" | Regression (XGBoost, Linear Learner) | Continuous numeric output |
| "There are no labels / discover groups" | K-Means | Unsupervised signal |
| "Find topics / a pile of documents" | LDA, NTM | Topic modeling signal |
| "Time series / future values / seasonality" | DeepAR, Amazon Forecast | May not be ordinary regression |
| "Text" | BlazingText | Text-specific, not XGBoost |
| "Image" | Image Classification | Vision-specific, not XGBoost |
| "Extremely rare / new forms of abnormality" | Random Cut Forest | Few labels + changing patterns |
| "The account and IP combination differs from usual" | IP Insights | Specialized for entity-IP |
| "Too many features / compress" | PCA | Dimensionality reduction signal |
| "User-item / very sparse" | Factorization Machines | Sparse second-order interactions |
If you pick an algorithm name before confirming the output form, you will be wrong. "Customer segmentation" looks like clustering, but if segment labels already exist in the passage, multiclass classification is the answer. The presence of labels flips supervised and unsupervised.
Specialty passages stack several constraints. Reading in the order below narrows most of them to one.
In passages where constraints conflict, the answer is not the flashiest technology but the choice that satisfies all the constraints at once. If it violates even one constraint (for example, supervised classification when there are no labels), it is wrong regardless of its other merits.
Starting tomorrow, we dig deeply into each built-in algorithm in this mapping table (XGBoost, Linear Learner, K-Means, KNN), one at a time.
Click a choice to reveal the answer and explanation.
Question 1
A telecom company wants to "identify in advance the customers likely to cancel next month." There are sufficient labels of whether past customers canceled. Which ML type is MOST appropriate for this problem?
Question 2
You want to catch fraud in credit card transactions. Fraud labels are almost nonexistent, and fraud techniques keep changing into new forms. Which approach is MOST suitable?
Question 3
"I want to automatically group thousands of news articles by topic without human labels, and learn the words that make up each topic." Which algorithm family is MOST appropriate?
Question 4
Which of the following is a "regression problem whose output is a continuous number"?
Question 5
As the first criterion for narrowing down the algorithm, which clue should you check first on the exam?