概念
Built-in algorithms: clustering, dimensionality reduction, anomaly
K-Means, PCA, Random Cut Forest and IP Insights: unsupervised algorithms and how to read their output.
本课尚未翻译,暂以英文显示。
K-Means
- Job
- Group similar rows
- Key setting
- k, the number of clusters
PCA
- Job
- Fewer features
- Key setting
- Number of components
Random Cut Forest
- Job
- Anomaly score
- Key setting
- Number of trees
IP Insights
- Job
- Unusual entity and IP pair
- Key setting
- Vector size
| Algorithm | Job | Key setting |
|---|---|---|
| K-Means | Group similar rows | k, the number of clusters |
| PCA | Fewer features | Number of components |
| Random Cut Forest | Anomaly score | Number of trees |
| IP Insights | Unusual entity and IP pair | Vector size |
- 1Feed readings with no labels.
- 2RCF builds trees and scores each point.
- 3Flag points far above the average score.
分步说明
- 1Feed readings with no labels.
- 2RCF builds trees and scores each point.
- 3Flag points far above the average score.
From readings to an anomaly flag.
是什么
These four learn from data without labels. K-Means groups similar rows into k clusters, such as customer segments. You choose k: train for several values of k, plot the error against k, and pick the “elbow” where more clusters stop helping. PCA (principal component analysis) reduces dimensionality: it keeps the directions with the most variance, so many columns shrink to a few before another model. You set the number of components.
是什么
Random Cut Forest (RCF) detects anomalies. It gives each data point an anomaly score: a low score means normal and a high score means unusual. A common rule flags points scoring more than about three standard deviations above the mean score. Use RCF on sensor readings, traffic spikes or any stream. IP Insights learns the normal pairs of an entity (such as a user ID or account) and an IPv4 address, then scores how unusual a new pair is, to spot a login from a strange address.
是什么
Input: K-Means, PCA and RCF accept CSV or recordIO-protobuf. IP Insights accepts CSV only, with two columns: entity, then IP address. Most of these train on CPU. RCF does not use GPUs, and IP Insights can use GPUs on large data.
要记住
- K-Means: clusters. Choose k with the elbow method.
- PCA: fewer columns that keep most of the variance.
- RCF: an anomaly score per point. High is unusual. About three standard deviations is a common cutoff.
- IP Insights: unusual entity and IP address pairs.
要记住
- No labels are needed to train. RCF can take labeled test data to measure accuracy.
- Formats: CSV or recordIO-protobuf. IP Insights is CSV only.
考试中
- “Find unusual readings in sensor data without labels” points to Random Cut Forest.
- “Group customers into segments” points to K-Means.
- “Reduce 200 features to 20 before training” points to PCA.
- “Flag a login from an IP address the user never used” points to IP Insights.
本任务内容 · 2.2
- Built-in algorithms for tabular data
- Built-in algorithms: clustering, dimensionality reduction, anomaly
- Built-in algorithms: text, sequence and forecasting
- Built-in algorithms: image and video
- Training jobs, script mode and ML libraries
SageMaker AMT
- Reducing training time
- Distributed training and HyperPod
- Overfitting, underfitting and catastrophic forgetting
- Combining models
- Epochs, steps, batch size and learning rate
- Task-specific prompt engineering
- Fine-tuning and continued pre-training in Bedrock
- PEFT, LoRA and fine-tuning on SageMaker
- Model distillation
- Optimizing retrieval and embedding models