Module 7 · Lesson 5 of 536/56 in the course~20 min
Module lessons (5/5)
Feature importance
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 7 — Trees, ensembles and SVMs
Impurity and permutation importance, and correlated features.
What you'll learn in this lesson
- Read the impurity-based feature importances of a forest.
- Compute permutation importance on held-out data.
- Explain why correlated features make importances hard to interpret.
Overview
A model that scores well is useful; one you can interrogate is trustworthy. Feature importance answers "which inputs does the model rely on?". It helps you debug (a suspicious feature may be a leak), simplify (drop useless inputs) and explain.
Compare impurity-based ranking against held-out permutation drops and duplicate-feature credit dilution below:
Sections covered in this lesson
- 1The hook: what is the model looking at?
- 2Comparing feature-importance methods
- 3Try it: interactive feature-importance & correlation explorer
- 4Progressive examples: ranking and auditing model inputs
- 5Correlated features split importance credit
- 6Practice
Pro Lesson · Module 7 — Trees, ensembles and SVMs
Unlock "Feature importance" and the full Machine Learning: from first principles to practice curriculum
Impurity and permutation importance, and correlated features.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.