build_rf: build random forest classifier

View source: R/build_rf.R

build_rfR Documentation

build random forest classifier

Description

train a random forest model and predict forecast-models for new series

Usage

build_rf(
  training_set,
  testset = FALSE,
  rf_type = c("ru", "rcp"),
  ntree,
  seed,
  import = FALSE,
  mtry = 8
)

Arguments

training_set

data frame of features and class labels

testset

features of new time series, default FALSE if a testset is not available

rf_type

whether ru(random forest based on unbiased sample) or rcp(random forest based on class priors)

ntree

number of trees in the forest

seed

a value for seed

import

Should importance of predictors be assessed?, TRUE of FALSE

mtry

number of features to be selected at each node

Value

a list containing the random forest and forecast-models for new series


seer documentation built on Oct. 1, 2022, 9:06 a.m.