Skip to content

Commit

Permalink
closes #217
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppec committed Oct 18, 2024
1 parent 9c08213 commit 0838adc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ Config/testthat/edition: 3
Config/testthat/parallel: true
Encoding: UTF-8
Roxygen: list(markdown = TRUE, r6 = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
1 change: 1 addition & 0 deletions R/Shapley.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Shapley <- R6Class("Shapley",
#' [data.frame] with the Shapley values (phi) per feature.
initialize = function(predictor, x.interest = NULL, sample.size = 100) {
checkmate::assert_data_frame(x.interest, null.ok = TRUE)
x.interest = as.data.frame(x.interest)
super$initialize(predictor = predictor)
x.interest <- x.interest[setdiff(colnames(x.interest), predictor$data$y.names)]
self$sample.size <- sample.size
Expand Down
2 changes: 1 addition & 1 deletion man/calculate.ale.cat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/calculate.ale.num.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/calculate.ale.num.cat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/calculate.ale.num.num.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/extract.glmnet.effects.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0838adc

Please sign in to comment.