Learn R Programming

rtemis (version 0.79)

predict.addTree: Predict method for addTree object

Description

Predict method for addTree object

Usage

# S3 method for addTree
predict(object, newdata = NULL, learning.rate = NULL,
  n.feat = NULL, verbose = FALSE, cxrcoef = FALSE, ...)

Arguments

object

an rtMod trained with s.ADDT or an addTree object

newdata

data frame of predictor features

learning.rate

Float: learning rate if object was addTree

n.feat

Integer: internal use only

verbose

Logical: If TRUE, print messages to console. Default = FALSE

cxrcoef

Logical: If TRUE, return matrix of cases by coefficients along with predictions. Default = FALSE