I want to make a 2D Accumulated Local Effect (ALE) plot using R package iml
Figure5.20: ALE plot for the 2nd-order effect of humidity and temperature on the predicted number of rented bikes.)
I'm not sure even if I read the iml
manual, can anyone tell me how to write code?
For reference, it is as follows for 1D ALE.
# compute the accumulated local effect for a feature
library(iml)
eff = FeatureEffect$new(
predictor,
feature = "a_feature",
method = "ale"
)
plot(eff)