addTrees: Add Trees

Description Usage Arguments Value

View source: R/addTrees.R

Description

Add more trees to an existing forest. Most parameters are extracted from the previous forest.

Usage

1
2
3
4
addTrees(forest, numTreesToAdd, savePath = NULL,
  savePath.overwrite = c("warn", "delete", "merge"),
  forest.output = c("online", "offline"), cores = getCores(),
  displayProgress = TRUE)

Arguments

forest

An existing forest.

numTreesToAdd

The number of trees to add.

savePath

If saving the forest, the directory to save to. Default is NULL. Note that you need to re-specify the path if you're modifying a previously saved forest.

savePath.overwrite

If savePath is pointing to an existing directory, possibly containing another forest, this specifies what should be done.

forest.output

This parameter only applies if savePath has been set; set to 'online' (default) and the saved forest will be loaded into memory after being trained. Set to 'offline' and the forest is not saved into memory, but can still be used in a memory unintensive manner.

cores

The number of cores to be used for training the new trees.

displayProgress

A logical indicating whether the progress should be displayed to console; default is TRUE. Useful to set to FALSE in some automated situations.

Value

A new forest with the original and additional trees.


jatherrien/largeRCRF documentation built on Nov. 15, 2019, 7:16 a.m.