Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prepareForSave

Prepares ExtraTrees object for save() function


Description

This function prepares ExtraTrees for saving by serializing the trees in Java VM. It is equivalent to calling .jcache(et$jobject). Afterwards the object can be saved by save (or automatic R session saving) and will be fully recovered after load.

Note: the object can still be used as usual after prepareForSave.

Usage

prepareForSave(object)

Arguments

object

extraTrees (S3) object, created by extraTrees().

Value

Nothing is returned.

Author(s)

Jaak Simm

Examples

et <- extraTrees(iris[,1:4], iris$Species)
  prepareForSave(et)
  ## saving to a file
  save(et, file="temp.Rdata")

  ## testing: remove et and load it back from file
  rm(list = "et")
  load("temp.Rdata")
  predict(et, iris[,1:4])

extraTrees

Extremely Randomized Trees (ExtraTrees) Method for Classification and Regression

v1.0.5
Apache License 2.0
Authors
Jaak Simm, Ildefons Magrans de Abril
Initial release
2014-12-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.