ModelOriented / iBreakDown

Break Down with interactions for local explanations (SHAP, BreakDown, iBreakDown)
https://ModelOriented.github.io/iBreakDown/
GNU General Public License v3.0
81 stars 15 forks source link

plot() incompatible with old objects #77

Closed agosiewska closed 4 years ago

agosiewska commented 4 years ago

I cannot use plot function with old break_down objects (created about half a year before).

Please, find an example old object in the attachment. old_bd.zip

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=Polish_Poland.1250  LC_CTYPE=Polish_Poland.1250   
[3] LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C                  
[5] LC_TIME=Polish_Poland.1250    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] patchwork_1.0.0  iBreakDown_1.0.1 dplyr_0.8.5      ggplot2_3.3.0   

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4       rstudioapi_0.11  magrittr_1.5     tidyselect_1.0.0 munsell_0.5.0   
 [6] colorspace_1.4-1 R6_2.4.1         rlang_0.4.5      tools_3.6.1      grid_3.6.1      
[11] packrat_0.5.0    gtable_0.3.0     DALEX_1.0.1      withr_2.1.2      assertthat_0.2.1
[16] digest_0.6.25    tibble_2.1.3     lifecycle_0.2.0  crayon_1.3.4     purrr_0.3.3     
[21] farver_2.0.3     glue_1.3.2       labeling_0.3     compiler_3.6.1   pillar_1.4.3    
[26] scales_1.1.0     pkgconfig_2.0.3 
agosiewska commented 4 years ago

Works, thanks!