ensemble: Construct the value for the ensemble argument

View source: R/ensemble.R

ensembleR Documentation

Construct the value for the ensemble argument

Description

Vistla can be run in the ensemble mode, in which tree is built multiple times, usually on a slightly modified input data. This mode can be triggered by passing a value to the ensemble argument of the vistla method. This function can be used to construct the proper value for this argument.

Usage

ensemble(n = 30, resample = TRUE, prune = 0)

## S3 method for class 'vistla_ensemble_control'
print(x, ...)

Arguments

n

number of replicatons.

resample

if TRUE, a modified bootstrap is used; that is, algorithm draws as many objects as are in the original data, but with replacement, hence only about 63.2 If this argument is given a number, it is interpreted to randomly sample exactly this fraction of objects, without replacement. Fraction f of n objects is interpreted as round(n*f), but not less than 3 and no more than n-1. If FALSE, no resampling is done (vistla trees are just built using different random seeds.

prune

Minimal number of iterations in which certain branch must appear not be prunned during ensemble consolidation. Zero (default) means no prunning. Note that iomin and targets arguments of the base algorithm can also be used to control the size of the resulting consensus tree.

x

ensemble control value to print.

...

ignored.

Value

A vistla_ensemble_control object which can be passed to the vistla function.


vistla documentation built on Sept. 28, 2024, 1:08 a.m.

Related to ensemble in vistla...