Apache Spark ML
Train and score models on datasets that no longer fit on one machine, using the same handful of ideas the rest of your team already relies on: DataFrames, pipelines, cross-validation. This course shows exactly when Spark starts to earn its keep, and when it is a costly detour.
Course Duration: 7h
What You'll Learn
- Describe Spark's execution model — driver, executors, tasks, stages, partitions — and diagnose it from the web UI
- Choose between RDD, DataFrame and Dataset, and understand why the DataFrame is the default in 2026
- Read execution plans, tell narrow from wide transformations, and predict where a shuffle will occur
- Load large columnar datasets with an explicit schema and prune partitions instead of scanning them
- Build a Spark ML pipeline with
VectorAssembler,StringIndexer,OneHotEncoderandStandardScaler - Tune hyperparameters at cluster scale with
CrossValidatorandParamGridBuilderwithout leakage - Pick the right algorithm inside MLlib and know which ones are missing and how to work around it
- Repartition, coalesce and diagnose key skew from the Spark UI, and set executor memory sensibly
- Write partitioned Parquet results, save a trained pipeline and reload it for batch scoring
- Decide, before starting, whether the problem actually needs Spark or whether pandas is enough
Prerequisites
- Python (course 02)
- Supervised learning (course 04)
- Feature engineering (course 06)
Course Modules
- Spark architecture: driver, executors, partitions
- RDD, DataFrame and Dataset
- Transformations, actions and lazy evaluation
- Reading data and columnar formats
- Spark ML: transformers and estimators
- Pipelines and distributed cross-validation
- Available algorithms and their constraints
- Tuning: partitions, memory, shuffle
- Writing results and downstream integration
- Project: a model trained on a large dataset
- Recap and exam
The running project
Across all ten modules you build the same object: a model that predicts flight delays over a public dataset of tens of millions of flights, stored as Parquet. Each module adds one capability to that same project — a schema and a partitioned read (4), a features pipeline (5), a cross-validated model (6), an algorithm choice justified by MLlib's real inventory (7), a shuffle problem solved (8), production writes and reloads (9), and finally a full comparison with the same pipeline run on a pandas sample of the same data (10). Development runs on local PySpark; every command is followed by the equivalent for a cluster or a Databricks workspace.
Assessment and certificate
The course ends with a 40-question exam covering every module. On success, a certificate of completion is issued; its number is verifiable on the platform.
Free courses, by contrast, end with a 5-question quiz and a preview of the certificate, without certification.