DALEX
ingredients
The linear-regression model does not capture the non-linear relationship between the price and the year of construction.
price
year of construction
pdp_lm_year <- model_profile(explainer = explain_apart_lm, variables = "construction.year") pdp_rf_year <- model_profile(explainer = explain_apart_rf, variables = "construction.year") plot(pdp_rf_year, pdp_lm_year)