Skip to contents

DALEX auxiliary function for creating Partial Dependency Plots and study variable's responses vs independent vector.

Usage

dalex_variable(explainer, vars, force_class = NA, seed = 123, ...)

Arguments

explainer

Object. Result from h2o_explainer function.

vars

Character vector. Which features do you wish to study?

force_class

Character. If you wish to force a class on your vars, which one do you need?

seed

Numeric. Seed for reproducibility

...

Additional parameters passed to model_profile.

Value

List. Containing PDP results, plot and vars input.

See also

Other Interpretability: dalex_local(), dalex_residuals(), h2o_explainer()

Examples

# You must have "DALEX" library to use this auxiliary function:
if (FALSE) {
# Having an "explainer" object created with \code{h2o_explainer}:
# For numerical variables
dalex_variable(explainer, vars = c("Age", "Fare"))
# For categorical variables
dalex_variable(explainer, vars = c("Pclass", "Sex"))
}