RFNode: RFNode Constructor

Description Usage Arguments Format Value

View source: R/R_RFNode.R

Description

A constructor to create a RFNode

basic node creator

Usage

1
2
3
RFNode(sampleIndex = list(averagingSampleIndex = vector(),
  splittingSampleIndex = vector()), splitFeature = numeric(),
  splitValue = numeric(), child = list())

Arguments

sampleIndex

A list of index of dataset used in this node and its children. 'sampleIndex' contains two keys 'averagingSampleIndex' and 'splittingSampleIndex'. 'averagingSampleIndex' is used to generate aggregated prediction for the node. 'splittingSampleIndex' is used for 'honestRF' which stores the splitting data when creating the tree. In default, 'splittingSampleIndex' is the same as 'averagingSampleIndex'.

splitFeature

Name of the feature that is used for splitting in this node.

splitValue

The value that is used for splitting in this node.

child

If the node is not a leaf node, the 'child' will be a list of two 'RFNode' objects. If it is a leaf node, the 'child' will be 'NULL'.

Format

An object of class NULL of length 0.

Value

a 'RFNode' object


theo-s/Rforestry_R documentation built on Dec. 23, 2021, 9:55 a.m.