dalex_variable: DALEX Partial Dependency Plots (PDP)

dalex_variableR Documentation

DALEX Partial Dependency Plots (PDP)

Description

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:
## Not run: 
# 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"))

## End(Not run)

lares documentation built on Sept. 13, 2024, 1:08 a.m.