CaseBasedReasoning (version 0.1)

depthMatrix: Get depth distance matrix

Description

Get depth distance matrix

Usage

depthMatrix(x, y = NULL, rfObject)

Arguments

x

a new dataset

y

a new dataset

rfObject

ranger object

Examples

Run this code
# NOT RUN {
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
d <- depthMatrix(x=iris[, -5], rfObject=rf)

# }

Run the code above in your browser using DataLab