概念
Built-in algorithms: text, sequence and forecasting
BlazingText, Seq2Seq, Object2Vec, LDA, NTM and DeepAR: what each does and the clue that picks it.
このレッスンはまだ翻訳されていないため、英語で表示しています。
BlazingText
- Task
- Word vectors, text classes
- Note
- __label__ prefix for classes
Seq2Seq
- Task
- Translation, summaries
- Note
- Token IDs, GPU
Object2Vec
- Task
- Embeddings for pairs
- Note
- Similarity or classes
LDA
- Task
- Topics
- Note
- Single CPU instance
NTM
- Task
- Topics
- Note
- Neural, can use GPU
DeepAR
- Task
- Forecast many series
- Note
- JSON Lines or Parquet
| Algorithm | Task | Note |
|---|---|---|
| BlazingText | Word vectors, text classes | __label__ prefix for classes |
| Seq2Seq | Translation, summaries | Token IDs, GPU |
| Object2Vec | Embeddings for pairs | Similarity or classes |
| LDA | Topics | Single CPU instance |
| NTM | Topics | Neural, can use GPU |
| DeepAR | Forecast many series | JSON Lines or Parquet |
1 / 2
BlazingText
- Task
- Word vectors, text classes
- Note
- __label__ prefix for classes
Seq2Seq
- Task
- Translation, summaries
- Note
- Token IDs, GPU
Object2Vec
- Task
- Embeddings for pairs
- Note
- Similarity or classes
| Algorithm | Task | Note |
|---|---|---|
| BlazingText | Word vectors, text classes | __label__ prefix for classes |
| Seq2Seq | Translation, summaries | Token IDs, GPU |
| Object2Vec | Embeddings for pairs | Similarity or classes |
2 / 2
LDA
- Task
- Topics
- Note
- Single CPU instance
NTM
- Task
- Topics
- Note
- Neural, can use GPU
DeepAR
- Task
- Forecast many series
- Note
- JSON Lines or Parquet
| Algorithm | Task | Note |
|---|---|---|
| LDA | Topics | Single CPU instance |
| NTM | Topics | Neural, can use GPU |
| DeepAR | Forecast many series | JSON Lines or Parquet |
Demand for thousands of products
- DeepAR
Word vectors or a fast text classifier
- BlazingText
Translate or summarize
- Seq2Seq
Themes in unlabeled documents
- LDA or NTM
Match pairs, such as question and answer
- Object2Vec
| Clue | Pick |
|---|---|
| Demand for thousands of products | DeepAR |
| Word vectors or a fast text classifier | BlazingText |
| Translate or summarize | Seq2Seq |
| Themes in unlabeled documents | LDA or NTM |
| Match pairs, such as question and answer | Object2Vec |
1 / 2
Demand for thousands of products
- DeepAR
Word vectors or a fast text classifier
- BlazingText
Translate or summarize
- Seq2Seq
Themes in unlabeled documents
- LDA or NTM
| Clue | Pick |
|---|---|
| Demand for thousands of products | DeepAR |
| Word vectors or a fast text classifier | BlazingText |
| Translate or summarize | Seq2Seq |
| Themes in unlabeled documents | LDA or NTM |
2 / 2
Match pairs, such as question and answer
- Object2Vec
| Clue | Pick |
|---|---|
| Match pairs, such as question and answer | Object2Vec |
概要
BlazingText has two jobs. Word2vec mode turns words into vectors. Supervised mode is a fast text classifier: each training line starts with a label such as __label__sports, then the text. Seq2Seq is an encoder-decoder for sequence to sequence tasks such as machine translation and summarization. Text becomes integer token IDs in recordIO-protobuf, and it trains on GPU instances. Object2Vec learns embeddings for pairs of objects, such as a question and an answer or a user and an item, for similarity or classification.
概要
Topic models find topics in unlabeled documents. Latent Dirichlet Allocation (LDA) is a probabilistic model and trains on a single CPU instance. Neural Topic Model (NTM) uses a neural network and can use GPUs. For both, you set the number of topics.
DeepAR forecasts time series with a recurrent neural network trained across many related series, such as demand for thousands of products. Because it learns from all the series at once, it can forecast a new series with little history, and it gives probabilistic forecasts: a range, not one number. Input is JSON Lines or Parquet.
覚えること
- BlazingText: word vectors (Word2vec) or a fast text classifier with __label__ prefixes.
- Seq2Seq: translation and summarization. GPU, with token IDs.
- Object2Vec: embeddings for pairs, for similarity or classification.
- LDA and NTM: topics without labels. You choose the number of topics.
覚えること
- DeepAR: forecasts for many related series, with ranges. It helps new series with little history.
- One lone time series may not gain from DeepAR. It shines across many related series.
試験では
- “Forecast demand for 10,000 products with one model” points to DeepAR.
- “A fast text classifier with labels in the training file” points to BlazingText supervised mode.
- “Translate sentences using your own parallel text” points to Seq2Seq.
- “Find themes in thousands of unlabeled documents” points to LDA or Neural Topic Model.
このタスクの内容 · 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