Custom AI Model Development
Build and fine-tune a genuinely customized model or adapter, prove it against the unchanged base model, then deploy, monitor, and recover it.
30 lessons
Estimated lesson study time: 525 minutes
Lesson estimates are a guide, not a deadline. Allow extra time for practice, projects, and review.
Learn AI & Technology Access gives you full access to all 19 tracks and 552 lessons after sign-up and onboarding. No time limit, paid subscription, or payment card required.
Start Learn AI & Technology AccessIncludes three AI Tutor answers across these courses. AI-generated content remains subject to Learn’s monthly allowance.
Track overview
Learn when a customized model is justified instead of prompting or retrieval alone. Follow the model lifecycle from a permitted dataset through training or fine-tuning, protected comparison with the unchanged base model, packaging, inference, monitoring, and recovery.
Who this track is for
Technical learners who want to train or fine-tune a model rather than build only a prompt or retrieval wrapper.
Before you begin
Be comfortable with Python, datasets, and running code. Plan a permitted use case and a bounded compute budget before training; external compute or hosting may cost money.
What you will work toward
Work toward an actual model or adapter artifact, dataset and model cards, an evaluation report, a working inference path, and monitoring and rollback evidence.
Complete lesson outline
1. Scope the Model and Prove Customization Is Needed
5 lessons
1.1 The Machine Learning Mindset
12 minutes- Define machine learning as learning a function from labeled or unlabeled data
- Distinguish the three main paradigms: supervised, unsupervised, and reinforcement learning
- Frame a real problem as a machine learning task with inputs and targets
1.2 Supervised vs Unsupervised Learning
13 minutes- Explain how supervised learning uses labeled examples to predict outputs
- Describe how unsupervised learning finds structure without labels
- Match common tasks like clustering and classification to the correct paradigm
1.3 Training and Test Data
14 minutes- Explain why data must be split into training, validation, and test sets
- Describe how data leakage undermines honest evaluation
- Apply cross-validation to make better use of limited data
1.4 Understanding Overfitting and Underfitting
15 minutes- Define overfitting and underfitting in terms of the bias-variance trade-off
- Diagnose fitting problems by comparing training and validation scores
- Choose remedies such as more data, regularization, or simpler models
1.5 Responsible Machine Learning
16 minutes- Identify sources of bias in data and models
- Explain fairness metrics and model transparency techniques
- Apply governance practices for accountable ML systems
2. Build a Permitted, Representative Dataset
5 lessons
2.1 Feature Engineering Essentials
15 minutes- Explain how good features improve model performance more than model choice
- Create derived features from raw columns
- Handle missing values with sensible imputation strategies
2.2 Encoding Categorical Data
14 minutes- Explain why models need numeric inputs and how to encode categories
- Apply one-hot encoding and ordinal encoding appropriately
- Recognize the pitfalls of high-cardinality categorical features
2.3 Scaling and Normalization
13 minutes- Explain why feature scaling matters for distance-based and gradient methods
- Apply standardization and min-max normalization
- Fit scalers on training data only to avoid leakage
2.4 Feature Selection and Importance
14 minutes- Explain why removing irrelevant features can improve models
- Use feature importance scores to rank inputs
- Apply correlation analysis and recursive elimination to select features
2.5 Building an End-to-End Pipeline
16 minutes- Combine preprocessing and modeling into a single scikit-learn pipeline
- Explain how pipelines prevent leakage during cross-validation
- Persist and reload a trained pipeline for reuse
3. Train and Fine-Tune the Model
5 lessons
3.1 Introduction to Neural Networks with PyTorch
17 minutes- Build a small feed-forward network with PyTorch modules
- Define a loss function and optimizer for training
- Run a training loop and monitor the loss
3.2 Neural Network Building Blocks
15 minutes- Describe neurons, layers, and activation functions in a feed-forward network
- Explain how weights and biases transform inputs into outputs
- Choose activation functions such as ReLU and sigmoid for different layers
3.3 Backpropagation Intuition
16 minutes- Explain how backpropagation computes gradients using the chain rule
- Describe how errors flow backward through network layers
- Connect gradient signals to weight updates during training
3.4 Training Dynamics and Optimizers
16 minutes- Explain how batch size and learning rate affect training stability
- Compare optimizers such as SGD and Adam
- Diagnose training curves for signs of divergence or plateaus
3.5 Transfer Learning and Fine-Tuning
16 minutes- Explain how pretrained models transfer knowledge to new tasks
- Distinguish feature extraction from full fine-tuning
- Adapt a pretrained model to a custom dataset
4. Evaluate Against the Unchanged Base Model
5 lessons
4.1 Cost Functions and Errors
14 minutes- Define mean squared error and mean absolute error for regression
- Explain how a cost function guides model optimization
- Compare error metrics and choose one for a given problem
4.2 Evaluating Classifiers
15 minutes- Read a confusion matrix to understand types of errors
- Compute precision, recall, and F1 score
- Interpret ROC curves and AUC for threshold selection
4.3 Cross-Validation Strategies
14 minutes- Explain k-fold cross-validation and why it gives robust estimates
- Apply stratified folds for imbalanced classification
- Interpret cross-validation score variance
4.4 Hyperparameter Tuning
15 minutes- Distinguish parameters learned from data from hyperparameters set by the user
- Apply grid search and randomized search to find good settings
- Avoid overfitting the validation set during tuning
4.5 Regularization for Deep Networks
15 minutes- Explain how dropout reduces overfitting in neural networks
- Describe batch normalization and weight decay
- Apply early stopping based on validation performance
5. Package, Serve, Monitor, and Recover
5 lessons
5.1 Experiment Tracking
15 minutes- Explain why reproducible experiment tracking matters for ML projects
- Log parameters, metrics, and artifacts across training runs
- Compare runs to select the best model version
5.2 Model Packaging and Serving
16 minutes- Package a trained model with its dependencies for deployment
- Expose a model behind a prediction API endpoint
- Explain batch versus real-time serving tradeoffs
5.3 Monitoring and Data Drift
15 minutes- Explain why model performance degrades over time in production
- Distinguish data drift from concept drift
- Set up monitoring and retraining triggers
5.4 Deploying a Machine Learning Model
17 minutes- Serialize a trained model for production use
- Wrap a model behind a simple prediction API
- Describe monitoring and retraining needs after deployment
5.5 Transformers and Attention
17 minutes- Explain the self-attention mechanism and why it scales well
- Describe queries, keys, and values in attention
- Outline how transformer blocks stack to form large models
6. Build, Evaluate, and Deploy the Working Model
5 lessons
6.1 Capstone 1: Define the Model Outcome and Baseline
30 minutes- Select a real personal, professional, educational, or community use case where changing model behavior is justified
- Record the unchanged base-model baseline, measurable acceptance threshold, excluded uses, and rollback criteria
- Prove why prompting, retrieval, or deterministic software alone is insufficient
6.2 Capstone 2: Build the Training and Protected Evaluation Data
30 minutes- Create versioned training, validation, and protected test sets from permitted examples with ownership, provenance, privacy, and representativeness controls
- Detect leakage, duplication, imbalance, unsafe examples, and prohibited sensitive data before training
- Publish a dataset card recording provenance, licenses, limitations, splits, and approval
6.3 Capstone 3: Train a Working Customized Model
30 minutes- Fine-tune a supported base model or train a task-specific model and preserve the resulting model or adapter artifact
- Record the reproducible configuration, code, data version, seed, checkpoints, compute time, and cost
- Load the saved artifact in a clean runtime and produce real inference output without substituting prompt-only or RAG-only customization
6.4 Capstone 4: Evaluate, Repair, and Select the Release
30 minutes- Compare the customized model with the unchanged base model on the frozen protected evaluation set
- Measure task quality, harmful behavior, memorization, latency, throughput, and cost against acceptance thresholds
- Repair failures without editing failed protected cases and select or reject the release from preserved evidence
6.5 Capstone 5: Deploy and Prove the Working Model
30 minutes- Serve the selected model for a real personal, professional, educational, or community use case and demonstrate real end-to-end inference
- Deliver the model artifact, model card, dataset card, evaluation report, serving configuration, monitoring plan, and cost record
- Demonstrate version pinning, access controls, drift response, failure recovery, and rollback to the approved prior version