explain_forest {explore}R Documentation

Explain a target using Random Forest.

Description

Explain a target using Random Forest.

Usage

explain_forest(data, target, ntree = 50, out = "plot", ...)

Arguments

data

A dataset

target

Target variable (binary)

ntree

Number of trees used for Random Forest

out

Output of the function: "plot" | "model" | "importance" | all"

...

Further arguments

Value

Plot of importance (if out = "plot")

Examples


data <- create_data_buy()
explain_forest(data, target = buy)


[Package explore version 1.3.0 Index]