From 2739adacad225ddee93927f259c174ec961830ca Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 15 Mar 2024 12:15:22 +0100 Subject: [PATCH] remove two very fast to calculate temp results --- vignettes/randomForestExplainer.Rmd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vignettes/randomForestExplainer.Rmd b/vignettes/randomForestExplainer.Rmd index 44c61f1..d78d78c 100644 --- a/vignettes/randomForestExplainer.Rmd +++ b/vignettes/randomForestExplainer.Rmd @@ -56,9 +56,7 @@ Now, we will use all the functions of `randomForestExplainer` in turn and commen To obtain the distribution of minimal depth we pass our forest to the function `min_depth_distribution` and store the result, which contains the following columns (we save this and load it from memory as it takes a while): ```{r} -# min_depth_frame <- min_depth_distribution(forest) -# save(min_depth_frame, file = "min_depth_frame.rda") -load("min_depth_frame.rda") +min_depth_frame <- min_depth_distribution(forest) head(min_depth_frame, n = 10) ``` @@ -94,9 +92,7 @@ Regardless of the exact parameters used in `plot_min_depth_distribution`, lookin To further explore variable importance measures we pass our forest to `measure_importance` function and get the following data frame (we save and load it from memory to save time): ```{r} -# importance_frame <- measure_importance(forest) -# save(importance_frame, file = "importance_frame.rda") -load("importance_frame.rda") +importance_frame <- measure_importance(forest) importance_frame ```