implementRF: Build random forest model

Description Usage Arguments Value

View source: R/implementRF.R

Description

Build a RF model using caret and save result in a subfolder.

Usage

1
2
3
4
5
6
7
8
implementRF(
  dt_train,
  dt_test,
  dir_rf = NULL,
  name_rdata = NULL,
  do_prallel = T,
  max_cores
)

Arguments

dt_train

dataframe. Training data for RF. Reference col should be 'manual'.

dt_test

dataframe. Test data for RF. This should have the same columns as dt_train.

dir_rf

a directory to save the result of RF. If NULL, a subfolder will be automatically generated.

name_rdata

filefame for saving the RF result. If NULL, name will be automatically generated.

do_prallel

logical. If TRUE, use parallel process to tune RF.

max_cores

numeric. Maximum numbers of cores used for parallel processing.

Value

a list of the results of RF modeling. Rdata file is saved in a subfolder.


dulvrq/ddl8s1ts documentation built on May 2, 2021, 5:18 a.m.