1. Start Here: Your 60-Second Mental Model
Machines performing tasks that normally require aspects of human intelligence: perception, reasoning, language, planning, decision-making, generation.
A major approach within AI where models learn patterns from examples instead of being explicitly programmed with every rule.
A family of ML methods using multi-layer neural networks, especially powerful for images, audio, language and complex representations.
Models that generate text, images, audio, video, code or other content based on learned patterns and a user/system input.
Big umbrella
Learn from data
Neural networks
Generation-focused systems
Questions you may be wondering
2. Understand AI vs ML vs DL vs Generative AI
| Concept | Core idea | Typical input | Typical output | Example |
|---|---|---|---|---|
| AI | Systems performing intelligent tasks | Rules, data, sensors, text, images | Decision/action/content | Game-playing agent |
| ML | Learn patterns from examples | Features + labels or unlabeled data | Prediction/classification/representation | Spam classifier |
| DL | Deep neural networks learn representations | Images, text, audio, sequences | Prediction/representation/generation | Image classifier |
| Generative AI | Generate new content | Prompt/context/noise/conditioning | Text, image, audio, video, code | Text-to-image model |
Use-case challenge
Classify each system. Click an answer to reveal the reasoning.
Basic → Advanced questions
3. Machine Learning Fundamentals
Training a model — simple story
Suppose we want to predict whether a customer will cancel a subscription.
- Collect historical customer records.
- Define the target:
churn = yes/no. - Prepare features such as tenure, usage, plan and support calls.
- Split data into training/validation/test sets.
- Train a model on training data.
- Tune choices using validation data.
- Evaluate once more on unseen test data.
- Deploy and monitor it.
Labeled data
Each training example has an input and a known target.
(customer_features → churn=yes)Typical: classification, regression.
Unlabeled data
Inputs exist, but a target label is not supplied.
customer_features → ?Typical: clustering, representation learning, self-supervised learning.
| Data type | Example | Common ML treatment |
|---|---|---|
| Structured | Rows/columns in a database | Tabular ML, regression, classification |
| Unstructured | Images, audio, free-form text, video | Deep learning, NLP, computer vision, multimodal models |
| Semi-structured | JSON, XML, logs | Parse into features/representations first |
Inference: batch vs real-time
Batch inference
Process many records together on a schedule.
Example: generate tomorrow's recommendations for 10 million customers overnight.
Real-time inference
Respond to a request with low latency.
Example: score a payment transaction during checkout.
ML questions students ask
4. Deep Learning Fundamentals
pixels / tokens / audio
representation
higher-level features
prediction / generation
A neural network learns parameters (weights and biases) so that its output minimizes a chosen loss function. During training, gradients computed by backpropagation are used by an optimizer to update those parameters.
Computer Vision
Works with images/video. Tasks include classification, object detection, segmentation, OCR and image generation.
NLP
Works with language. Tasks include classification, translation, summarization, question answering and text generation.
Representation learning
The network learns useful internal representations rather than requiring humans to manually specify every feature.
5. Generative AI Fundamentals
Foundation models
Foundation models are large, broadly capable models trained on extensive data and intended to be adapted or prompted for many downstream tasks. They can support language, vision, audio and multimodal use cases depending on the model.
LLMs and tokens
Token
A model-specific unit used to represent text. A token may be a whole word, part of a word, punctuation or another subword unit.
Important: token ≠ character ≠ word. Tokenization depends on the tokenizer.
LLM
A large language model is trained to model language patterns. Autoregressive LLMs commonly predict the next token given previous context.
Embeddings and vectors
An embedding maps an item such as text into a numerical vector in a learned representation space. Similar meanings can often occupy nearby regions, although “nearby” depends on the model and similarity metric.
text → embedding model → [0.12, -0.44, 0.83, ...] → vector database → similarity search
Diffusion models
add noise
learn to denoise
GANs and VAEs
GAN
Two neural networks are trained in opposition: a generator creates samples and a discriminator attempts to distinguish generated samples from real samples.
VAE
A variational autoencoder learns a probabilistic latent representation and a decoder can sample from that latent space to generate outputs.
Multimodal models
Models that can work across multiple modalities, such as text + image, or text + audio, depending on the system. Multimodality is about the information types a model can process and/or generate.
Optimizing model outputs
| Technique | What changes? | When useful? |
|---|---|---|
| Prompt engineering | The instructions/context sent to the model | Fast task adaptation without changing model weights |
| Instruction fine-tuning | Model parameters are adapted using instruction-response examples | Teach desired task behavior/style/format |
| Fine-tuning | Model parameters are adapted on task/domain data | Need more persistent behavior than prompting alone |
| RLHF | Human preference information influences optimization | Align behavior with desired human preferences |
| RAG | External information is retrieved and supplied as context | Ground responses in current/private/domain information |
RAG: the practical mental model
6. AWS AI/ML Services & Technologies
Core platform mental model
Amazon SageMaker AI
Managed ML platform for building, training and deploying ML models, including support for foundation-model workflows and custom training.
Amazon Bedrock
Managed service for building generative AI applications using foundation models through APIs and managed capabilities.
SageMaker JumpStart
Helps discover, evaluate, customize and deploy models and ML solutions within SageMaker workflows.
Amazon Q
Generative-AI assistants for business/technical workflows. Amazon Q Developer focuses strongly on software development and AWS-related work.
Amazon Comprehend
NLP service for extracting insights from text, such as sentiment, entities, language and key phrases.
Amazon Translate
Neural machine translation for text.
Amazon Textract
Extracts text and structured information from documents and images.
Amazon Lex
Build conversational interfaces using voice and text.
Amazon Polly
Text-to-speech service that turns text into spoken audio.
Amazon Transcribe
Speech-to-text transcription for audio files and streams.
Amazon Rekognition
Computer-vision capabilities for image and video analysis.
Amazon Kendra
ML-powered enterprise search over unstructured content.
Amazon Personalize
Personalization and recommendation capabilities.
AWS DeepRacer
Hands-on learning platform centered on reinforcement learning through an autonomous racing environment.
Bedrock vs SageMaker AI — a question worth teaching carefully
| Amazon Bedrock | Amazon SageMaker AI | |
|---|---|---|
| Primary focus | Build and operate generative AI applications/agents using foundation models | Build, train, customize and deploy ML/AI models with greater model/infrastructure control |
| Typical audience | Developers, application teams, technical decision makers | Data scientists, ML engineers, AI platform teams |
| Need to train from scratch? | Usually no | Can support custom training and extensive customization |
| RAG | Managed capabilities such as Knowledge Bases can support RAG | Can be used for broader custom ML/RAG infrastructure and model workflows |
| Control | More abstraction | More control over training, compute, deployment and optimization |
AWS service selection challenge
Cost considerations
- Inference: cost depends on request volume, model, tokens, latency/throughput requirements and pricing mode.
- Training: consider accelerator/instance cost, training duration, storage and experiment iterations.
- Data: storage, data transfer and retrieval/indexing can contribute to total cost.
- Architecture: real-time endpoints can create always-on cost; batch workloads may allow different economics.
- GenAI: token consumption, context length, retrieval volume and repeated prompts can materially affect spend.
- Governance: logging, monitoring, security controls and evaluation also have operational cost.
- Optimization: choose an appropriately capable model, control context, cache where appropriate, batch suitable work, and monitor cost per successful business outcome.
7. Check Your Understanding
Try these questions without looking back at the notes. Use your score to identify topics you should review.
8. Flashcards for Quick Revision
Use these for quick revision before an exam, interview or practical session.
9. Searchable Glossary & Quick Reference
10. Recommended Self-Study Path
| Step | What you should do | Goal |
|---|---|---|
| 1 | Study AI, ML, DL and GenAI | Build the core mental model and learn the differences. |
| 2 | Study ML fundamentals | Understand data, labels, training, evaluation and inference. |
| 3 | Study deep learning | Understand neural networks, CV and NLP. |
| 4 | Study generative AI | Connect tokens, embeddings, foundation models, prompting and RAG. |
| 5 | Compare GenAI techniques | Understand when prompting, RAG and fine-tuning are appropriate. |
| 6 | Study AWS services | Match real-world problems to appropriate AWS AI/ML services. |
| 7 | Take the quiz and flashcards | Check your understanding and revisit weak areas. |
11. Sources & AWS Documentation
This tutorial uses current AWS terminology checked against official AWS documentation in September 2026.