Skip to content

Commit

Permalink
Remove superfluous arg in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
mayer79 committed Oct 25, 2023
1 parent 3af5bb8 commit 5aea914
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions R/utils_calculate.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ wrowmean <- function(x, ngroups = 1L, w = NULL) {
rownames(out) <- NULL
out
}
# wrowmean <- function(x, ngroups, w = NULL) {
# n_bg <- NROW(x) %/% ngroups
# if (!is.null(w)) {
# w <- rep(w, times = ngroups)
# }
# collapse::fmean(x, g = rep(seq_len(ngroups), each = n_bg), w = w)
# }

#' Weighted Version of colMeans()
#'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ set.seed(1)
task_iris <- TaskClassif$new(id = "class", backend = iris, target = "Species")
fit_rf <- lrn("classif.ranger", predict_type = "prob")
fit_rf$train(task_iris)
s <- hstats(fit_rf, X = iris[-5], threeway_m = 0)
s <- hstats(fit_rf, X = iris[-5])
plot(s)

# Permutation importance
Expand Down

0 comments on commit 5aea914

Please sign in to comment.