Learn R Programming

rtemis (version 0.79)

as.cartLinBoostTV: Place model in cartLinBoostTV structure

Description

Place model in cartLinBoostTV structure

Usage

as.cartLinBoostTV(object, x, y = NULL, x.valid = NULL,
  y.valid = NULL, learning.rate = 1, init = 0, apply.lr = TRUE)

Arguments

object

rtMod model

x

Data.frame, optional: if provided, use to calculate fitted values of new boost object

y

Float, vector: Outcome

x.valid

Data.frame; optional: Validation data

y.valid

Float, vector; optional: Validation outcome

learning.rate

Float: Learning rate for new boost object. Default = 1

init

Float: Initial value for new boost object. Default = 0

apply.lr

Logical: Only considered is x = NULL. If TRUE, new boost object's fitted values will be object$fitted * learning.rate, otherwise object$fitted