Chapter 6: Introduction to Machine Learning¶
Your first steps into machine learning—from concepts to your first model and capstone project.
Metadata¶
| Field | Value |
|---|---|
| Track | Practitioner |
| Time | 8 hours |
| Prerequisites | Chapters 1–4 (Python, Data Structures, Linear Algebra, Probability) |
Learning Objectives¶
- Understand the ML pipeline (problem → solution)
- Distinguish supervised, unsupervised, and reinforcement learning
- Build your first ML model with scikit-learn
- Evaluate model performance correctly
- Understand bias-variance tradeoff
- Apply feature engineering and cross-validation
- Complete a churn prediction capstone
What's Included¶
Notebooks¶
| Notebook | Description |
|---|---|
01_introduction.ipynb | What is ML, framing problems, first model |
02_intermediate.ipynb | Features, evaluation metrics, bias-variance |
03_advanced.ipynb | Churn prediction capstone project |
Scripts¶
ml_toolkit.py— Data loading, splitting, evaluation helpersutilities.py— Reusable ML utilities
Exercises¶
- 5 exercises with solutions (in
solutions/branch)
SVG Diagrams¶
- 3 visual diagrams for ML concepts and pipelines
Read Online¶
You can read the full chapter content right here on the website:
- 06.1 Introduction -- What is ML, types of learning, first linear regression model
- 06.2 Intermediate -- Feature engineering, evaluation metrics, bias-variance tradeoff
- 06.3 Advanced -- Customer churn prediction end-to-end capstone
Or try the code in the Playground.
How to Use This Chapter¶
Quick Start
Follow these steps to get coding in minutes.
1. Clone and install dependencies
git clone https://github.com/luigipascal/berta-chapters.git
cd berta-chapters
pip install -r requirements.txt
2. Navigate to the chapter
3. Launch Jupyter
GitHub Folder
All chapter materials live in: chapters/chapter-06-intro-machine-learning/
Foundation Required
Complete Chapters 1–4 first. This chapter uses Python, linear algebra, and statistics.
Created by Luigi Pascal Rondanini | Generated by Berta AI