rf2rfz: Save RF-SRC in .rfz Compressed Format

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

rf2rfz saves a RF-SRC object as a .rfz compressed file that is readable by the randomForestSRC Java plugin that is capable of visualizing the trees in the forest.

Usage

1
rf2rfz(object, forestName = NULL, ...)

Arguments

object

An object of class (rfsrc, grow) or (rfsrc, forest). Requires forest=TRUE in the original rfsrc call.

forestName

The desired prefix name for forest as a string.

...

Further arguments passed to or from other methods.

Details

An .rfz compressed file is actually a .zip file consisting of three files. The first is an ASCII file of type .txt containing the $nativeArray component of the forest. The second is an ASCII file of type .factor.txt containing the $nativefactorArray component of the forest. The third is an ASCII file of type .xml containing the PMML DataDictionary component.

PMML or the Predictive Model Markup Language is an XML based language which provides a way for applications to define statistical and data mining models and to share models between PMML compliant applications. More information about PMML and the Data Mining Group can be found at http:

The function rf2rfz is used to import the geometry of the forest to the RF-SRC Java plugin that is capable of visualizing the trees in the forest.

The geometry of the forest is saved as a file called forestName.rfz in the users working directory. This file can then be read by the randomForestSRC Java plugin.

Contact the authors on downloading the Java plugin.

Value

None.

Note

Contact the authors on downloading the Java plugin.

Author(s)

Hemant Ishwaran and Udaya B. Kogalur

References

http:

See Also

rfsrc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Example 1:  Growing a forest, saving it as a \emph{.rfz} file ready
# for import into the Java plugin.

library("XML")

data(veteran, package = "randomForestSRC")
v.obj <- rfsrc(Surv(time, status)~., data = veteran)
rf2rfz(v.obj$forest, forestName = "veteran")

## End(Not run)

ehrlinger/randomForestSRC documentation built on May 16, 2019, 1:20 a.m.