You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a bit worried that every time we make a change to shap or explain functions, we have to re-create the test objects (explanation_explain_obj.rds and similar) which compares the results of the previous run to pass the tests. That means we don't have a good test for this. This is especially dangerous if one does many changes in the same PR (although we seldom do that).
My suggestion is to add a seperate test that checks only the shapley values from the different test models. We could run a lapply call to the ex_list, extract only the data.table with the shapley values, and then do a testthat::expect_known_value or testthat::expect_known_object on that. What do you think @nikolase90 ? Or is there a better option?
If you're working on one of these files, please add the url to your branch or the pull request. Mark the box if the changes are merged with
master
.R-files
clustering.R
explanation.R
Tests for shapley.R and explanation.R #128features.R
Splits feature_combinations into multiple functions #70observations.R
Tests for R/observations.R #95plot.R
Tests for plot function #86predictions.R
Unit tests for R/predictions.R #109sampling.R
Tests for functions in R/sampling.R (#91) #92shapley.R
Tests for shapley.R and explanation.R #128transformation.R
Tests for R/transformation.R #77utils.R
Currently there are zero functions inR/utils.R
.models.R
Unit tests and fixes for R/models.R #129src-files
AICc.cpp
distance.cpp
impute_data.cpp
Adds tests for function in src/impute_data.cpp #78weighted_matrix.cpp
Adds tests for functions in src/weighted_matrix.cpp #73The following files should not be tested
R/shapr-package.R
R/zzz.R
The text was updated successfully, but these errors were encountered: