Learn R Programming

randomForestSRC (version 1.3)

restore: Restoration for Random Forests for Survival, Regression, and Classification

Description

Restoration mode for RF-SRC.

Usage

## S3 method for class 'rfsrc':
restore(object,
  importance = c("permute", "random", "permute.ensemble", "random.ensemble", "none"),
  proximity = FALSE, var.used = c(FALSE, "all.trees", "by.tree"),
  split.depth = c(FALSE, "all.trees", "by.tree"), seed = NULL, do.trace = FALSE,
  membership = FALSE, ...)

Arguments

object
An object of class (rfsrc, grow) or (rfsrc, forest). Requires in the original rfsrc call.
importance
Method used to compute variable importance.
proximity
Should the proximity between observations be calculated?
var.used
Analyzes which variables are split on.
split.depth
Return minimal depth for each variable for each case.
seed
Negative integer specifying the random number generator seed.
do.trace
Should trace output be enabled? Default is FALSE. Integer values can also be passed. A positive value causes output to be printed each do.trace iteration.
membership
Should terminal node membership and inbag information be returned?
...
Further arguments passed to or from other methods.

Value

  • An object of class (rfsrc, predict).

Details

restore takes the forest grow object and gives the user the ability to restore all grow outputs.

See Also

rfsrc

Examples

Run this code
airq.obj <- rfsrc(Ozone ~ ., data = airquality, na.action = "na.impute", ntree=100)
restore(airq.obj)
print(airq.obj)

Run the code above in your browser using DataLab