Get depth distance matrix
depthMatrix(x, y = NULL, rfObject)
a new dataset
ranger object
ranger
# 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