1

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)

pat-s
  • 5,992
  • 1
  • 32
  • 60
tissue
  • 11
  • 4
  • Please make the question more [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). – NelsonGon Mar 13 '20 at 07:20

0 Answers0