findSplittingPoint_linear: findSplittingPoint_linear

Description Usage Arguments Value

View source: R/R_linearTree.R

Description

Finds the best splitting value and feature to split on

Usage

1
2
3
4
findSplittingPoint_linear(x, y, featureList,
  sampleIndex = list(averagingSampleIndex = 1:length(y), splittingSampleIndex
  = 1:length(y)), nodesize = list(splittingNodeSize = 5, averagingNodeSize =
  5), splitrule = "variance", categoricalFeatureCols = list())

Arguments

x

feature data set

y

dependent outcome

featureList
sampleIndex

a list containing two integer vecotrs 'averagingSampleIndex' and 'splittingSampleIndex' which specify which of the features is used for splitting and which is used for estimating the beta in the leaves

nodesize

a list containing 'splittingNodeSize' and 'averagingNodeSize' which specify the nodesizes for the splitting and the aceraging sets.

splitrule

= "variance",

categoricalFeatureCols

= list()

Value

A list of two outputs: "splitFeature" is the best feature to split in order to minimize the split loss, "splitValue" is its corresponding split value.


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