Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change(s) in new version of fastshap #20

Closed
bgreenwell opened this issue May 11, 2023 · 2 comments
Closed

Breaking change(s) in new version of fastshap #20

bgreenwell opened this issue May 11, 2023 · 2 comments

Comments

@bgreenwell
Copy link

bgreenwell commented May 11, 2023

Hi @myles-lewis,

I am preparing a new release of fastshap for CRAN, and it seems like it will break some functionality in your package. You can see a list of changes here. I suspect the biggest changes affecting your package iare that 1) fastshap >= 0.1.0 will no longer return a tibble, but rather a matrix, and 2) the autoplot() function have been removed in favor of using the much better shapviz package.

Just wanted to give you a heads up before I plan to submit in two weeks.

nestedcv

Run revdepcheck::revdep_details(, "nestedcv") for more info

Newly broken

  • checking examples ... ERROR
    Running examples in ‘nestedcv-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: pred_nestcv_glmnet
    > ### Title: Prediction wrappers to use fastshap with nestedcv
    > ### Aliases: pred_nestcv_glmnet pred_nestcv_glmnet_class1
    > ###   pred_nestcv_glmnet_class2 pred_nestcv_glmnet_class3 pred_train
    > ###   pred_train_class1 pred_train_class2 pred_train_class3
    > 
    > ### ** Examples
    ...
    Error in `autoplot()`:
    ! Objects of class <explain> are not supported by autoplot.
    ℹ have you loaded the required package?
    Backtrace:
        ▆
     1. ├─ggplot2::autoplot(sh)
     2. └─ggplot2:::autoplot.default(sh)
     3.   └─cli::cli_abort(...)
     4.     └─rlang::abort(...)
    Execution halted
    
@myles-lewis
Copy link
Owner

myles-lewis commented May 11, 2023 via email

@myles-lewis
Copy link
Owner

Should be fixed in next version. I removed call to autoplot() completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants