概念 · 基于 AIF-C01
Selecting ML models and algorithms
Match the problem type to an algorithm family, then weigh interpretability, accuracy, speed and data size.
本课尚未翻译,暂以英文显示。
你在AI Practitioner中已学过
- Regression predicts a number, classification a category, clustering finds groups.
- Forecasting predicts values over time. Recommendation learns from user behavior.
- Supervised learning needs labels. Clustering does not.
Tabular prediction
- Algorithm family
- Linear models, trees, boosting
- Note
- Linear is easiest to explain
Clustering
- Algorithm family
- K-means
- Note
- You choose k
Anomaly detection
- Algorithm family
- Random Cut Forest
- Note
- Scores each point
Forecasting
- Algorithm family
- DeepAR, statistical models
- Note
- Time series input
Recommendation
- Algorithm family
- Factorization machines
- Note
- Sparse user and item data
Images
- Algorithm family
- CNN
- Note
- Train on GPU
Text and sequences
- Algorithm family
- Transformer
- Note
- Pre-trained models save effort
| Problem | Algorithm family | Note |
|---|---|---|
| Tabular prediction | Linear models, trees, boosting | Linear is easiest to explain |
| Clustering | K-means | You choose k |
| Anomaly detection | Random Cut Forest | Scores each point |
| Forecasting | DeepAR, statistical models | Time series input |
| Recommendation | Factorization machines | Sparse user and item data |
| Images | CNN | Train on GPU |
| Text and sequences | Transformer | Pre-trained models save effort |
1 / 3
Tabular prediction
- Algorithm family
- Linear models, trees, boosting
- Note
- Linear is easiest to explain
Clustering
- Algorithm family
- K-means
- Note
- You choose k
Anomaly detection
- Algorithm family
- Random Cut Forest
- Note
- Scores each point
| Problem | Algorithm family | Note |
|---|---|---|
| Tabular prediction | Linear models, trees, boosting | Linear is easiest to explain |
| Clustering | K-means | You choose k |
| Anomaly detection | Random Cut Forest | Scores each point |
2 / 3
Forecasting
- Algorithm family
- DeepAR, statistical models
- Note
- Time series input
Recommendation
- Algorithm family
- Factorization machines
- Note
- Sparse user and item data
Images
- Algorithm family
- CNN
- Note
- Train on GPU
| Problem | Algorithm family | Note |
|---|---|---|
| Forecasting | DeepAR, statistical models | Time series input |
| Recommendation | Factorization machines | Sparse user and item data |
| Images | CNN | Train on GPU |
3 / 3
Text and sequences
- Algorithm family
- Transformer
- Note
- Pre-trained models save effort
| Problem | Algorithm family | Note |
|---|---|---|
| Text and sequences | Transformer | Pre-trained models save effort |
ReLU
Default in hidden layers. Fast, and gradients do not vanish easily.
Sigmoid
Squeezes a value into 0 to 1. Yes or no output.
Softmax
Turns scores into probabilities that add up to 1. One of many classes.
Tanh
Squeezes a value into -1 to 1. An older hidden-layer choice.
是什么
Start from the problem type, then pick a family. For tabular regression and classification, linear models and single decision trees are simple and easy to explain. Gradient boosting (XGBoost, LightGBM) and deep networks usually score higher but are harder to explain. Clustering uses k-means. Anomaly detection uses Random Cut Forest. Forecasting uses DeepAR or classic statistical models. Recommendation uses factorization machines or Amazon Personalize.
是什么
Deep learning fits unstructured data. A convolutional neural network (CNN) reads images. A recurrent neural network (RNN) reads a sequence one step at a time, which is slow on long text. A transformer uses attention to read all tokens together, trains in parallel, and powers language models and many modern vision models. A neural network needs more data and compute than a tree model, so on a small table a boosted tree often wins.
Four limits steer the choice: explainability (a regulator wants reasons), latency (a linear or tree model answers fast, a large network may not), the amount of data (deep networks need a lot), and the cost to train and serve.
要记住
- Must explain each decision: linear model or single decision tree.
- Need top accuracy on a table: gradient boosting such as XGBoost.
- Images: CNN. Language and long sequences: transformer. RNNs are older and slower to train.
- Small data set: a simple model or transfer learning, not a deep network from scratch.
- Tight latency or small budget: a simpler model.
要记住
- Activation functions: ReLU in hidden layers, sigmoid for a yes or no output, softmax for one of many classes.
考试中
- “A loan model must give reasons a customer can read” points to a linear model or decision tree.
- “Classify photos” points to a convolutional neural network.
- “Output a probability for each of ten classes” points to a softmax output layer.
本任务内容 · 2.1
- Choosing a foundation model in Bedrock
- Custom, managed, pre-trained or foundation model
- Selecting ML models and algorithms
JumpStart and AutoML
- Fine-tuning strategies for foundation models
- RAG architecture patterns
- Training time, cost and performance trade-offs
- FM performance, latency and cost trade-offs
Textract
Rekognition
Comprehend
Transcribe
Translate, Polly, Lex
Personalize and health AI