powered by
Uses the `iml` package to calculate ALE for the specified feature.
explain_ale(object, feature, data = c("train", "test"), ...)
An `iml` object containing ALE results.
A `fastml` object.
Character string specifying the feature name.
Character string specifying which data to use: "train" (default) or "test".
"train"
"test"
Additional arguments passed to `iml::FeatureEffect`.
if (FALSE) { data(iris) iris <- iris[iris$Species != "setosa", ] iris$Species <- factor(iris$Species) model <- fastml(data = iris, label = "Species") explain_ale(model, feature = "Sepal.Length") }
Run the code above in your browser using DataLab