All lessons in Machine Learning Engineering: Reliable Predictive Models

Forest Diagnostics Lab

Run the supplied synthetic experiment, reconstruct OOB predictions, and compare importance methods.

75 minutes · Members lesson · preview

What you will learn

  • Run the supplied workbook and locate the manifest, development metrics, OOB reconstruction, importance tables, decision threshold, and sealed final result inside report.json.
  • Reconstruct an out-of-bag probability by hand from a small fixture and explain why only trees whose bootstrap sample excluded a row may vote for it.
  • Compare impurity importance with repeated and grouped permutation importance and explain why a correlated proxy column changes the picture.

This lab turns the forest material into something you can run, break, and inspect. The parcel carrier scenario stays the same: at dispatch the carrier wants a probability that a parcel will arrive late, and it wants to know which inputs the model actually relies on. The workbook contains no real parcels. It generates independent, identically distributed synthetic rows with five features: dispatch_load, load_proxy (a noisy copy that is correlated with dispatch load), weather_risk, weekend, and noise_code (a code with no relationship to lateness). Because the rows are iid there are no timestamps, routes, or depots, so time-based or grouped splits are design extensions you sketch by hand, not something this data can validate.

Every number printed in this lesson is a hand-computable fixture. Your run will produce its own numbers; write those into your notes rather than expecting them to match anything here.

Choose another lesson