Skip to content

Individual Conditional Expectation (ICE) plots display one line per instance that shows how the instance's prediction changes when a feature changes. The Partial Dependence Plot (PDP) for the average effect of a feature is a global method because it does not focus on specific instances, but on an overall average.

Notifications You must be signed in to change notification settings

ksharma67/Partial-Dependent-Plots-and-Individual-Conditional-Expectation-Plots

Repository files navigation

Partial-Dependent-Plots-Individual-Conditional-Expectation-Plots

Python code snippets to perform the following task:

  1. Modeling Training a simple Linear Regression model Training an advanced Gradient Boosting (XGBoost) Regression model Evaluating both models and comparing them on the Validation Root Mean Squared Error metric.

  2. Partial Dependence Plots Generating the following PDPs (for both models): a) For predictor/feature "Mfg_Year", which is indicative of the 'Age' of a vehicle. b) For predictor/feature "HP", which is indicative of the (horse) power of the vehicle's engine. c) For predictor/feature "KM", it indicates the vehicle's (accumulated) Kilometers on the odometer

  3. Individual Conditional Expectation Plots Generating ICE Plots (for both models) on the same predictors as above. The ICE Plots were generated for 10 unique points.

About

Individual Conditional Expectation (ICE) plots display one line per instance that shows how the instance's prediction changes when a feature changes. The Partial Dependence Plot (PDP) for the average effect of a feature is a global method because it does not focus on specific instances, but on an overall average.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published