proximity | R Documentation |
Compute proximity matrix from a random forest or matrix of terminal node assignments (one row for each observation and one column for each tree in the forest).
proximity(x, ...) ## Default S3 method: proximity(x, sparse = NULL, upper = TRUE, ...) ## S3 method for class 'matrix' proximity(x, sparse = NULL, upper = TRUE, ...) ## S3 method for class 'ranger' proximity(x, data = NULL, sparse = NULL, upper = TRUE, ...)
x |
Either a |
... |
Additional optional argument. (Currently ignored.) |
sparse |
Logical or |
upper |
Logical indicating whether or not to return the proximities in
upper triangular form ( |
data |
Optional data frame passed on to
|
A matrix or sparse Matrix (sparse = TRUE
) of pairwise
proximity (i.e., similarity) scores between training observations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.