pranger | R Documentation |
Pranger bases on unsupervised random forests generated with ranger
to compute proximities between individuals.Two approaches are supported. The
first approach of Shi and Horvath (2006) that increases the
dissimilarity between two individuals to one if they don't belong to the
same terminal node. The second approach of Fouodo et al. (2021) takes the tree
depth into account and estimates the dissimilarity between two individuals
basing on the length of the minimal path between the terminal nodes they
belong to.
pranger( data, strategy, oob = FALSE, init_dist = 0, nb_bootst = NULL, approach = "deep", aggregation = mean, verbose = FALSE, seed = NULL, ... )
data |
[ |
strategy |
[ |
oob |
[ |
init_dist |
[ |
nb_bootst |
[ |
approach |
[ |
aggregation |
[ |
verbose |
[ |
seed |
[ |
... |
further parameters to be passed to |
[matrix
] Matrix of dissimilarities.
Note: You can use the function cleandist
to
convert the dissimilarity matrix into a distance
matrix
Cesaire J. K. Fouodo
## Not run: set.seed(1234) index <- sample(x = 1:150, size = 15, replace = FALSE) iris_dissimilarities <- pranger( data = iris[ , -5], strategy = "boostrepl") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.