explain_forest: Explain a target using Random Forest.

View source: R/explain.R

explain_forestR 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)


rolkra/explore documentation built on April 17, 2024, 10:58 p.m.