head.DFNET.forest: Return the first trees in the forest

View source: R/methods.R

head.DFNET.forestR Documentation

Return the first trees in the forest

Description

Returns the first (= oldest) trees in the forest. The number of trees to keep is determined by multiplying the number of generations with the generation size of the forest (the ntrees parameter) in train.

Usage

## S3 method for class 'DFNET.forest'
head(x, n.generations = 6L, ...)

Arguments

x

The original DFNET.forest.

n.generations

integer. The number of generations to keep.

...

arguments to be passed to or from other methods.

Details

This function should not be used to retrain the forest from an earlier branch. It does not return last.performance and may return a wrong value for walk.depth.

Value

The first n.generations generations worth of modules and trees.


pievos101/DFNET documentation built on Dec. 1, 2022, 3:44 p.m.