Learn R Programming

isotree (version 0.5.14)

isotree.get.num.nodes: Get Number of Nodes per Tree

Description

Get Number of Nodes per Tree

Usage

isotree.get.num.nodes(model)

Arguments

model

An Isolation Forest model as produced by function `isolation.forest`.

Value

A list with entries `"total"` and `"terminal"`, both of which are integer vectors with length equal to the number of trees. `"total"` contains the total number of nodes that each tree has, while `"terminal"` contains the number of terminal nodes per tree.