extract_proximity {metaforest}R 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



[Package metaforest version 0.1.4 Index]