View source: R/get_distance_values.R
get_distance_values | R Documentation |
get_distance_values
calculated tree based distance values for a single tree or random forest built with ranger
.
Returned distance values still need to be aggregated, e.g. with get_distance_score.R.
function to get distance values that returns matrix with distance valuesget_distance_values
calculated tree based distance values for a single tree or random forest built with ranger
.
Returned distance values still need to be aggregated, e.g. with get_distance_score.R.
function to get distance values that returns matrix with distance values
get_distance_values(rf, metric = metric, test_data = NULL)
rf |
Object of class |
metric |
Specification of distance (dissimilarity) metric. Available are "splitting variables", "weighted splitting variables", and "prediction". |
test_data |
Additional data set comparable to the data set |
matrix of values for distance calculation (cols = trees)
Lea Louisa Kronziel, M.sc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.