eval_split: eval_split

Description Usage Arguments Value Examples

Description

Helper function to evaluate the current split based on a given evaluation method (the default is least squares, "ls")

Usage

1
eval_split(split_df, method = "ls")

Arguments

split_df

A matrix with two columns coming out of the "split" function

method

A string giving the evaluation method (default is "ls") –TO BE EXTENDED

Value

A named vector with the preferred tree node after evaluation. The value gives the outcome in the node, the name is "0" or "1" depending on which of the two nodes was selected.

Examples

1
pref_node = eval_split(split(pred1, out), method = "ls")

andriizakharov/DDMtree documentation built on May 21, 2019, 9:19 a.m.