depthMatrix: Get depth distance matrix

Description Usage Arguments Examples

View source: R/distance.R

Description

Get depth distance matrix

Usage

1
depthMatrix(x, y = NULL, rfObject)

Arguments

x

a new dataset

y

a new dataset

rfObject

ranger object

Examples

1
2
3
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
d <- depthMatrix(x=iris[, -5], rfObject=rf)

CaseBasedReasoning documentation built on May 2, 2019, 9:42 a.m.