dt_reg: Function that builds weak model on Decision Tree for...

Description Usage Arguments Value Examples

View source: R/random_forest.R

Description

Function that builds weak model on Decision Tree for regression task

Usage

1
dt_reg(x, y)

Arguments

x

- input independent variables x for the training

y

- input dependent variable y for the traisning

Value

The trained Decision Tree model based on the input data.

Examples

1
2
3
4
x <- matrix(rnorm(4000), 200, 20)
beta <- rnorm(5)
y <- x[, 1:length(beta)] %*% beta + rnorm(200)
dt_reg(x, y)

StevenBoys/Ensemblelearn documentation built on Dec. 11, 2019, 2:06 a.m.