isotree (version 0.1.28)

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

Description

Get Number of Nodes per Tree

Usage

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.