-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
837 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ inst/compare_lundberg\.xgb\.obj | |
[.]out$ | ||
^CRAN-SUBMISSION$ | ||
^.Rprofile | ||
^python$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: shapr | ||
Version: 0.2.3.9000 | ||
Version: 0.2.3.9100 | ||
Title: Prediction Explanation with Dependence-Aware Shapley Values | ||
Description: Complex machine learning models are often hard to interpret. However, in | ||
many situations it is crucial to understand and explain why a model made a specific | ||
|
@@ -8,6 +8,7 @@ Description: Complex machine learning models are often hard to interpret. Howeve | |
values do, however, assume feature independence. This package implements the method | ||
described in Aas, Jullum and Løland (2019) <arXiv:1903.10464>, which accounts for any feature | ||
dependence, and thereby produces more accurate estimates of the true Shapley values. | ||
An accompanying Python wrapper (shaprpy) is available on GitHub. | ||
Authors@R: c( | ||
person("Nikolai", "Sellereite", email = "[email protected]", role = "aut", comment = c(ORCID = "0000-0002-4671-0337")), | ||
person("Martin", "Jullum", email = "[email protected]", role = c("cre", "aut"), comment = c(ORCID = "0000-0003-3908-5155")), | ||
|
@@ -18,7 +19,7 @@ Authors@R: c( | |
person("Camilla", "Lingjærde", role = "ctb"), | ||
person("Norsk Regnesentral", role = c("cph", "fnd")) | ||
) | ||
URL: https://norskregnesentral.github.io/shapr/, https://github.com/NorskRegnesentral/shapr | ||
URL: https://norskregnesentral.github.io/shapr/, https://github.com/NorskRegnesentral/shapr/ | ||
BugReports: https://github.com/NorskRegnesentral/shapr/issues | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
compute_time <- function(timing_list) { | ||
|
||
timing_secs <- mapply( | ||
FUN = difftime, | ||
timing_list[-1], | ||
timing_list[-length(timing_list)], | ||
units = "secs" | ||
) | ||
|
||
timing_output <- list( | ||
init_time = timing_list$init, | ||
total_time_secs = sum(timing_secs), | ||
timing_secs = timing_secs | ||
) | ||
|
||
return(timing_output) | ||
} |
Oops, something went wrong.