extract_proximity: Extract proximity matrix for a MetaForest object.

View source: R/extract_proximity.MetaForest.R

extract_proximityR Documentation

Extract proximity matrix for a MetaForest object.

Description

Extract proximity matrix for a MetaForest object.

Usage

extract_proximity(fit, newdata)

Arguments

fit

object of class \'MetaForest\'.

newdata

new data with the same columns as the data used for fit

Value

an n x n matrix where position i, j gives the proportion of times observation i and j are in the same terminal node across all trees.

Examples



cjvanlissa/metaforest documentation built on Jan. 28, 2024, 12:19 p.m.