R/explain.R
explain_forest.Rd
Explain a target using Random Forest.
explain_forest(data, target, ntree = 50, out = "plot", ...)
A dataset
Target variable (binary)
Number of trees used for Random Forest
Output of the function: "plot" | "model" | "importance" | all"
Further arguments
Plot of importance (if out = "plot")
data <- create_data_buy() explain_forest(data, target = buy)