-
Notifications
You must be signed in to change notification settings - Fork 18
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
1 parent
ba5f8d9
commit e36c804
Showing
32 changed files
with
267 additions
and
182 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 |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
^slowtests$ | ||
^TODO\.md$ | ||
^vignettes$ | ||
^\.github$ |
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,26 +1,26 @@ | ||
[ | ||
{ | ||
"definitions" : [ | ||
"file": "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"file_last_write": 1564258833.0, | ||
"definitions": [ | ||
{ | ||
"column" : 15, | ||
"file" : "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"kind" : 6, | ||
"line" : 6, | ||
"name" : "genOMat(int, int)", | ||
"parent_name" : "", | ||
"usr" : "c:@F@genOMat#I#I#" | ||
"usr": "c:@F@genOMat#I#I#", | ||
"kind": 6, | ||
"parent_name": "", | ||
"name": "genOMat(int, int)", | ||
"file": "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"line": 6, | ||
"column": 15 | ||
}, | ||
{ | ||
"column" : 6, | ||
"file" : "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"kind" : 6, | ||
"line" : 52, | ||
"name" : "genFrankensteinMatrices(arma::mat, arma::mat, arma::umat, int)", | ||
"parent_name" : "", | ||
"usr" : "c:@F@genFrankensteinMatrices#$@N@arma@S@Mat>#d#S0_#$@N@arma@S@Mat>#i#I#" | ||
"usr": "c:@F@genFrankensteinMatrices#$@N@arma@S@Mat>#d#S0_#$@N@arma@S@Mat>#i#I#", | ||
"kind": 6, | ||
"parent_name": "", | ||
"name": "genFrankensteinMatrices(arma::mat, arma::mat, arma::umat, int)", | ||
"file": "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"line": 52, | ||
"column": 6 | ||
} | ||
], | ||
"file" : "/Users/b780620/Desktop/devel/fastshap/src/fastshap.cpp", | ||
"file_last_write" : 1564258833.000000 | ||
] | ||
} | ||
] |
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,6 +1,5 @@ | ||
{ | ||
"debugBreakpointsState" : { | ||
"breakpoints" : [ | ||
] | ||
"debugBreakpointsState": { | ||
"breakpoints": [] | ||
} | ||
} |
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,9 +1,9 @@ | ||
{ | ||
"path" : "~/Desktop/devel/fastshap", | ||
"sortOrder" : [ | ||
"path": "~/Desktop/devel/fastshap", | ||
"sortOrder": [ | ||
{ | ||
"ascending" : true, | ||
"columnIndex" : 2 | ||
"columnIndex": 2, | ||
"ascending": true | ||
} | ||
] | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"activeTab" : -1 | ||
"activeTab": 1 | ||
} |
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,14 +1,14 @@ | ||
{ | ||
"left" : { | ||
"panelheight" : 1349, | ||
"splitterpos" : 549, | ||
"topwindowstate" : "HIDE", | ||
"windowheight" : 1386 | ||
"left": { | ||
"splitterpos": 378, | ||
"topwindowstate": "MAXIMIZE", | ||
"panelheight": 929, | ||
"windowheight": 966 | ||
}, | ||
"right" : { | ||
"panelheight" : 1348, | ||
"splitterpos" : 691, | ||
"topwindowstate" : "NORMAL", | ||
"windowheight" : 1386 | ||
"right": { | ||
"splitterpos": 475, | ||
"topwindowstate": "NORMAL", | ||
"panelheight": 928, | ||
"windowheight": 966 | ||
} | ||
} |
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,6 +1,5 @@ | ||
{ | ||
"TabSet1" : 0, | ||
"TabSet2" : 6, | ||
"TabZoom" : { | ||
} | ||
"TabSet1": 0, | ||
"TabSet2": 4, | ||
"TabZoom": {} | ||
} |
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,8 +1,8 @@ | ||
build-last-errors="[]" | ||
build-last-errors-base-dir="~/Desktop/devel/fastshap/" | ||
build-last-outputs="[{\"output\":\"==> Rcpp::compileAttributes()\\n\\n\",\"type\":0},{\"output\":\"* Updated R/RcppExports.R\\n\",\"type\":1},{\"output\":\"\\n\",\"type\":1},{\"output\":\"==> devtools::document(roclets = c('rd', 'collate', 'namespace'))\\n\\n\",\"type\":0},{\"output\":\"Updating fastshap documentation\\n\",\"type\":2},{\"output\":\"Warning: Version of roxygen2 last used with this package is 7.0.2. You only have version 6.1.1\\n\",\"type\":2},{\"output\":\"Writing NAMESPACE\\n\",\"type\":1},{\"output\":\"Loading fastshap\\n\",\"type\":2},{\"output\":\"Writing NAMESPACE\\n\",\"type\":1},{\"output\":\"Warning message:\\nroxygen2 requires Encoding: UTF-8 \\n\",\"type\":2},{\"output\":\"Documentation completed\\n\\n\",\"type\":1},{\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source fastshap\\n\\n\",\"type\":0},{\"output\":\"* installing to library ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library’\\n\",\"type\":1},{\"output\":\"* installing *source* package ‘fastshap’ ...\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"clang++ -std=gnu++11 -I\\\"/Library/Frameworks/R.framework/Resources/include\\\" -DNDEBUG -I\\\"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include\\\" -I\\\"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include\\\" -I/usr/local/include -DARMA_DONT_USE_OPENMP -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** libs\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"clang++ -std=gnu++11 -I\\\"/Library/Frameworks/R.framework/Resources/include\\\" -DNDEBUG -I\\\"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include\\\" -I\\\"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include\\\" -I/usr/local/include -DARMA_DONT_USE_OPENMP -fPIC -Wall -g -O2 -c fastshap.cpp -o fastshap.o\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o fastshap.so RcppExports.o fastshap.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/Cellar/gcc/9.2.0_3/lib/gcc/9 -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"installing to /Library/Frameworks/R.framework/Versions/3.5/Resources/library/fastshap/libs\\n\",\"type\":1},{\"output\":\"** R\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** inst\\n\",\"type\":1},{\"output\":\"** byte-compile and prepare package for lazy loading\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** help\\n\",\"type\":1},{\"output\":\"*** installing help indices\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"*** copying figures\\n\",\"type\":1},{\"output\":\"** building package indices\\n\",\"type\":1},{\"output\":\"** testing if installed package can be loaded\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"* DONE (fastshap)\\n\",\"type\":1},{\"output\":\"\",\"type\":1}]" | ||
compile_pdf_state="{\"errors\":[],\"output\":\"\",\"running\":false,\"tab_visible\":false,\"target_file\":\"\"}" | ||
build-last-outputs="[{\"type\":0,\"output\":\"==> Rcpp::compileAttributes()\\n\\n\"},{\"type\":1,\"output\":\"* Updated R/RcppExports.R\\n\"},{\"type\":1,\"output\":\"\\n\"},{\"type\":0,\"output\":\"==> devtools::document(roclets = c('rd', 'collate', 'namespace'))\\n\\n\"},{\"type\":2,\"output\":\"Updating fastshap documentation\\n\"},{\"type\":2,\"output\":\"Loading fastshap\\n\"},{\"type\":1,\"output\":\"Writing NAMESPACE\\n\"},{\"type\":1,\"output\":\"Writing NAMESPACE\\n\"},{\"type\":2,\"output\":\"Warning message:\\nroxygen2 requires Encoding: UTF-8 \\n\"},{\"type\":1,\"output\":\"Documentation completed\\n\\n\"},{\"type\":0,\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source fastshap\\n\\n\"},{\"type\":1,\"output\":\"* installing to library ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’\\n\"},{\"type\":1,\"output\":\"* installing *source* package ‘fastshap’ ...\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** using staged installation\\n\"},{\"type\":1,\"output\":\"** libs\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I\\\"/Library/Frameworks/R.framework/Resources/include\\\" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include -DARMA_DONT_USE_OPENMP -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I\\\"/Library/Frameworks/R.framework/Resources/include\\\" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include -DARMA_DONT_USE_OPENMP -fPIC -Wall -g -O2 -c fastshap.cpp -o fastshap.o\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"clang++ -mmacosx-version-min=10.13 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o fastshap.so RcppExports.o fastshap.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/Cellar/gcc/9.2.0_3/lib/gcc/9 -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"installing to /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-fastshap/00new/fastshap/libs\\n\"},{\"type\":1,\"output\":\"** R\\n\"},{\"type\":1,\"output\":\"** inst\\n\"},{\"type\":1,\"output\":\"** byte-compile and prepare package for lazy loading\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** help\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"*** installing help indices\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"*** copying figures\\n\"},{\"type\":1,\"output\":\"** building package indices\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** testing if installed package can be loaded from temporary location\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** checking absolute paths in shared objects and dynamic libraries\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** testing if installed package can be loaded from final location\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** testing if installed package keeps a record of temporary installation path\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"* DONE (fastshap)\\n\"},{\"type\":1,\"output\":\"\"}]" | ||
compile_pdf_state="{\"tab_visible\":false,\"running\":false,\"target_file\":\"\",\"output\":\"\",\"errors\":[]}" | ||
files.monitored-path="" | ||
find-in-files-state="{\"handle\":\"\",\"input\":\"\",\"path\":\"\",\"regex\":true,\"results\":{\"file\":[],\"line\":[],\"lineValue\":[],\"matchOff\":[],\"matchOn\":[]},\"running\":false}" | ||
find-in-files-state="{\"handle\":\"\",\"input\":\"\",\"path\":\"\",\"regex\":false,\"ignoreCase\":false,\"results\":{\"file\":[],\"line\":[],\"lineValue\":[],\"matchOn\":[],\"matchOff\":[],\"replaceMatchOn\":[],\"replaceMatchOff\":[]},\"running\":false,\"replace\":false,\"preview\":false,\"gitFlag\":false,\"replacePattern\":\"\"}" | ||
imageDirtyState="1" | ||
saveActionState="0" |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"cursorPosition" : "3,14", | ||
"scrollLine" : "0" | ||
"cursorPosition": "3,19", | ||
"scrollLine": "0", | ||
"source_window_id": "", | ||
"Source": "Source" | ||
} |
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,7 @@ | ||
{ | ||
"cursorPosition" : "38,3", | ||
"ignored_words" : "TreeSHAP,Shapley,fastshap,nsim,Lundberg,Su,https,arxiv,md,Rmd,GitHub,Shap,plyr,backend,foreach,TreeExplainer,XGBoost,xgboost,iml,img,src,png,Christoph,Interpretable,christophm,github,io,interpretable,travis,ci,bgreenwell,codecov,gh,bottomright,subsetting,Strumbelj,Kononenko\n", | ||
"scrollLine" : "5" | ||
"cursorPosition": "17,46", | ||
"ignored_words": "TreeSHAP,Shapley,fastshap,nsim,Lundberg,Su,https,arxiv,md,Rmd,GitHub,Shap,plyr,backend,foreach,TreeExplainer,XGBoost,xgboost,iml,img,src,png,Christoph,Interpretable,christophm,github,io,interpretable,travis,ci,bgreenwell,codecov,gh,bottomright,subsetting,Strumbelj,Kononenko\n", | ||
"scrollLine": "14", | ||
"source_window_id": "", | ||
"Source": "Source" | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"chunk_definitions":[],"doc_write_time":1575384935} | ||
{"chunk_definitions":[],"doc_write_time":1614010279} |
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 @@ | ||
*.html |
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,86 @@ | ||
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | ||
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: windows-latest, r: 'release'} | ||
- {os: macOS-latest, r: 'release'} | ||
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | ||
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | ||
|
||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
RSPM: ${{ matrix.config.rspm }} | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
|
||
- uses: r-lib/actions/setup-pandoc@v1 | ||
|
||
- name: Query dependencies | ||
run: | | ||
install.packages('remotes') | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) | ||
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
run: | | ||
while read -r cmd | ||
do | ||
eval sudo $cmd | ||
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))') | ||
- name: Install dependencies | ||
run: | | ||
remotes::install_deps(dependencies = TRUE) | ||
remotes::install_cran("rcmdcheck") | ||
shell: Rscript {0} | ||
|
||
- name: Check | ||
env: | ||
_R_CHECK_CRAN_INCOMING_REMOTE_: false | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check") | ||
shell: Rscript {0} | ||
|
||
- name: Upload check results | ||
if: failure() | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.