get_distance_score: 'get_distance_score' calculated tree based distance score for...

View source: R/get_distance_score.R

get_distance_scoreR Documentation

get_distance_score calculated tree based distance score for a single tree to a random forest built with ranger.

Description

get_distance_score calculated tree based distance score for a single tree to a random forest built with ranger.

Usage

get_distance_score(rf, dist_val_rf, dist_val_tree, metric, test_data = NULL)

Arguments

rf

Object of class ranger used with write.forest = TRUE.

dist_val_rf

Distance values for the random forest created with get_distance_values()

dist_val_tree

Distance values for the tree created with get_distance_values()

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 rf was build on. Only needed for metric "prediction".

Value

mean distance of tree to random forest

Author(s)

Lea Louisa Kronziel, M.sc.


imbs-hl/timbR documentation built on April 17, 2025, 2:08 p.m.