Learn R Programming

fastml (version 0.7.0)

explain_ale: Compute Accumulated Local Effects (ALE) for a fastml model

Description

Uses the `iml` package to calculate ALE for the specified feature.

Usage

explain_ale(object, feature, ...)

Value

An `iml` object containing ALE results.

Arguments

object

A `fastml` object.

feature

Character string specifying the feature name.

...

Additional arguments passed to `iml::FeatureEffect`.

Examples

Run this code
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