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



metaforest documentation built on May 29, 2024, 11:38 a.m.