graboo_fit1: Function that implement one weak model step of Gradient...

Description Usage Arguments Value Examples

View source: R/gradient_boosting.R

Description

Function that implement one weak model step of Gradient Boosting in regression

Usage

1
graboo_fit1(data, fweak = graboo_reg, loss = mse, eta = 0.1)

Arguments

data

- list of data that fweak need

fweak

- function that generates estimate from weak model based on input, its default value is graboo_reg

loss

- the loss function used, its default value is the mean of the square error

eta

- the step size we use to update the total estimate each time, its default value is 0.1

Value

A trained model function based on the one implementation of the weak model, whose input is the independent variables.

Examples

1
2
3
4
data <- list(x = matrix(rnorm(1000), 200, 5))
data$y <- data$x %*% rnorm(5) + rnorm(200, 0, 3)
data$last_est <- rep(0, ncol(data$x))
graboo_fit1(data)

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