Skip to contents

Returns the observation counts (n_obs) for each terminal leaf node, named by node ID. These are the raw row counts stored at fit time - they are not recomputed from training data or predictions.

Usage

cta_endpoint_denominators(tree)

Arguments

tree

A cta_tree from oda_cta_fit.

Value

Named integer vector of leaf n_obs values, named by node ID (as character); integer(0) for no-tree fits.

Details

Returns integer(0) for no-tree fits.