Learn R Programming

explore (version 1.3.4)

explain_forest: Explain a target using Random Forest.

Description

Explain a target using Random Forest.

Usage

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

Value

Plot of importance (if 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

Examples

Run this code
data <- create_data_buy()
explain_forest(data, target = buy)

Run the code above in your browser using DataLab