powered by
Uses the `iml` package to quantify the strength of feature interactions.
interaction_strength(object, data = c("train", "test"), ...)
An `iml::Interaction` object.
A `fastml` object.
Character string specifying which data to use: "train" (default) or "test".
"train"
"test"
Additional arguments passed to `iml::Interaction`.
if (FALSE) { data(iris) iris <- iris[iris$Species != "setosa", ] iris$Species <- factor(iris$Species) model <- fastml(data = iris, label = "Species") interaction_strength(model) }
Run the code above in your browser using DataLab