weightedDistance {CaseBasedReasoning} | R Documentation |
Weighted Distance calculation
weightedDistance(x, y = NULL, weights = NULL)
x |
a new dataset |
y |
a second new dataset |
weights |
a vector of weights |
a dist
or matrix
object
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
terminalNodes(iris[, -5], rf)