powered by
Generates Individual Conditional Expectation (ICE) plots for selected features using the `pdp` package.
plot_ice(object, features, ...)
A `ggplot` object displaying ICE curves.
A `fastml` object.
Character vector of feature names to plot.
Additional arguments passed to `pdp::partial`.
if (FALSE) { data(iris) iris <- iris[iris$Species != "setosa", ] iris$Species <- factor(iris$Species) model <- fastml(data = iris, label = "Species") plot_ice(model, features = "Sepal.Length") }
Run the code above in your browser using DataLab