scores: Pruning Scores

Description Usage Arguments Value

View source: R/pruningScoring.R

Description

This function calculates the score for each pruning of tree_alpha_list.

Usage

1
scores(N, Lv_notLv, x, y, fold, numStop, Tk, tree_alpha_list)

Arguments

N

Number of rows in data.

Lv_notLv

List with train and test sets.

x

Column input indexes in data.

y

Column output indexes in data.

fold

Parts in which the original data set is divided to perform Cross-Validation.

numStop

Minimum number of observations on a node to be split.

Tk

Best pruned tree.

tree_alpha_list

List with all the possible pruning and its associated alpha.

Value

List with the best pruning for each fold, the pruning with a lower score and tree_alpha_list with scores updated.


MiriamEsteve/EAT documentation built on Jan. 18, 2022, 6:55 p.m.