Skip to content

Commit e5ba5d8

Browse files
Further shorten examples before uploading to CRAN
1 parent 2b08362 commit e5ba5d8

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ Suggests:
2626
knitr
2727
VignetteBuilder: knitr
2828
RoxygenNote: 6.0.1
29-
URL: https://github.com/geneticsMiNIng/BlackBoxOpener/randomForestExplainer
29+
URL: https://github.com/MI2DataLab/randomForestExplainer

R/measure_importance.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ measure_p_value <- function(importance_frame){
8787
#' @importFrom data.table rbindlist
8888
#'
8989
#' @examples
90-
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE)
90+
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE, ntree = 300)
9191
#' measure_importance(forest)
9292
#'
9393
#' @export
@@ -285,8 +285,9 @@ plot_multi_way_importance <- function(importance_frame, x_measure = "mean_min_de
285285
#' @import GGally
286286
#'
287287
#' @examples
288-
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE)
289-
#' plot_importance_ggpairs(measure_importance(forest), measures = c("mean_min_depth", "times_a_root"))
288+
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE, ntree = 200)
289+
#' frame <- measure_importance(forest, measures = c("mean_min_depth", "times_a_root"))
290+
#' plot_importance_ggpairs(frame, measures = c("mean_min_depth", "times_a_root"))
290291
#'
291292
#' @export
292293
plot_importance_ggpairs <- function(importance_frame, measures =
@@ -319,8 +320,9 @@ plot_importance_ggpairs <- function(importance_frame, measures =
319320
#' @import GGally
320321
#'
321322
#' @examples
322-
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE)
323-
#' plot_importance_ggpairs(measure_importance(forest), measures = c("mean_min_depth", "times_a_root"))
323+
#' forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE, ntree = 300)
324+
#' frame <- measure_importance(forest, measures = c("mean_min_depth", "times_a_root"))
325+
#' plot_importance_ggpairs(frame, measures = c("mean_min_depth", "times_a_root"))
324326
#'
325327
#' @export
326328
plot_importance_rankings <- function(importance_frame, measures =

R/min_depth_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ get_min_depth_means <- function(min_depth_frame, min_depth_count_list, mean_samp
9999
#' @import dplyr
100100
#'
101101
#' @examples
102-
#' forest <- randomForest::randomForest(Species ~ ., data = iris)
102+
#' forest <- randomForest::randomForest(Species ~ ., data = iris, ntree = 300)
103103
#' plot_min_depth_distribution(min_depth_distribution(forest))
104104
#'
105105
#' @export

man/measure_importance.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_importance_ggpairs.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_importance_rankings.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_min_depth_distribution.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)