Published June 27, 2018 | Journal article | Version v1 | https://doi.org/10.21105/joss.00786

iml: An R package for Interpretable Machine Learning

Authors/Creators

Files

10.21105.joss.00786.pdf

Files (666.3 kB)

Name Size Download all
md5:6c0c5cb407e2da86a7a718bccc7b4853
128.8 kB Preview Download
md5:de10f17f47d895bef3df78cfa62893ce
537.5 kB Download

Additional details

Dates

Issued
June 27, 2018

References

  1. Molnar, C. (2018). iml: An R package for Interpretable Machine Learning (Version v0.5.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.1299059
  2. Choudhary, P., Kramer, A., & Datascience.Com Team. (2018). datascienceinc/Skater: Enable Interpretability via Rule Extraction(BRL) (Versions v1.1.0-b1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.1198885
  3. DALEX:%20Descriptive%20mAchine%20Learning%20EXplanations, Biecek,%20Przemyslaw, 2018, R%20package%20version%200.2.0, https://cran.r-project.org/package=DALEX
  4. lime:%20Local%20Interpretable%20Model-Agnostic%20Explanations, Pedersen,%20Thomas%20Lin%20and%20Benesty,%20Micha%C3%ABl, 2017, R%20package%20version%200.3.0, https://cran.r-project.org/package=lime
  5. pdp:%20An%20R%20Package%20for%20Constructing%20Partial%20Dependence%20Plots, Greenwell,%20Brandon%20M., The%20R%20Journal, 2017, 9, 1, 421%E2%80%93436, https://journal.r-project.org/archive/2017/RJ-2017-016/index.html
  6. Goldstein, A., Kapelner, A., Bleich, J., & Pitkin, E. (2015). Peeking Inside the Black Box: Visualizing Statistical Learning With Plots of Individual Conditional Expectation. Journal of Computational and Graphical Statistics, 24(1), 44–65. https://doi.org/10.1080/10618600.2014.907095
  7. Friedman, J. H., & Popescu, B. E. (2008). Predictive learning via rule ensembles. The Annals of Applied Statistics, 2(3), 916–954. https://doi.org/10.1214/07-aoas148
  8. Štrumbelj, E., & Kononenko, I. (2013). Explaining prediction models and individual predictions with feature contributions. Knowledge and Information Systems, 41(3), 647–665. https://doi.org/10.1007/s10115-013-0679-x
  9. Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). "Why Should I Trust You?": Explaining the Predictions of Any Classifier. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1135–1144. https://doi.org/10.1145/2939672.2939778
  10. There%20are%20serious%20drawbacks%20to%20many%20current%20variable%20importance%20(VI)%20methods,%20in%20that%20they%20tend%20to%20not%20be%20comparable%20across%20model%20types,%20can%20obscure%20implicit%20assumptions%20about%20the%20data%20generating%20distribution,%20or%20can%20give%20seemingly%20incoherent%20results%20when%20multiple%20prediction%20models%20fit%20the%20data%20well.%20In%20this%20paper%20we%20propose%20a%20framework%20of%20VI%20measures%20for%20describing%20how%20much%20any%20model%20class%20(e.g.%20all%20linear%20models%20of%20dimension%20p),%20any%20model-fitting%20algorithm%20(e.g.%20Ridge%20regression%20with%20fixed%20regularization%20parameter),%20or%20any%20individual%20prediction%20model%20(e.g.%20a%20single%20linear%20model%20with%20fixed%20coefficient%20vector),%20relies%20on%20covariate(s)%20of%20interest.%20The%20building%20block%20of%20our%20approach,%20Model%20Reliance%20(MR),%20compares%20a%20prediction%20model%E2%80%99s%20expected%20loss%20with%20that%20model%E2%80%99s%20expected%20loss%20on%20a%20pair%20observations%20in%20which%20the%20value%20of%20the%20covariate%20of%20interest%20has%20been%20switched.%20Expanding%20on%20MR,%20we%20propose%20Model%20Class%20Reliance%20(MCR)%20as%20the%20upper%20and%20lower%20bounds%20on%20the%20degree%20to%20which%20any%20well-performing%20prediction%20model%20within%20a%20class%20may%20rely%20on%20a%20variable%20of%20interest,%20or%20set%20of%20variables%20of%20interest.%20Thus,%20MCR%20describes%20reliance%20on%20a%20variable%20while%20accounting%20for%20the%20fact%20that%20many%20prediction%20models,%20possibly%20of%20different%20parametric%20forms,%20may%20fit%20the%20data%20well.%20We%20give%20probabilistic%20bounds%20for%20MR%20and%20MCR,%20leveraging%20existing%20results%20for%20U-statistics.%20We%20also%20illustrate%20connections%20between%20MR,%20conditional%20causal%20effects,%20and%20linear%20regression%20coefficients.%20We%20outline%20implementations%20of%20our%20approaches%20for%20regularized%20linear%20regression,%20and%20to%20regression%20in%20a%20reproducing%20kernel%20Hilbert%20space.%20We%20then%20apply%20MR%20&%20MCR%20to%20study%20the%20behavior%20of%20recidivism%20prediction%20models,%20using%20a%20public%20dataset%20of%20Broward%20County%20criminal%20records., arXiv, 1801.01489, Fisher,%20Aaron%20and%20Rudin,%20Cynthia%20and%20Dominici,%20Francesca, 1801.01489, Model%20Class%20Reliance:%20Variable%20Importance%20Measures%20for%20any%20Machine%20Learning%20Model%20Class,%20from%20the%20%22Rashomon%22%20Perspective, http://arxiv.org/abs/1801.01489, 2018
  11. R:%20A%20Language%20and%20Environment%20for%20Statistical%20Computing, R%20Core%20Team, R%20Foundation%20for%20Statistical%20Computing, Vienna,%20Austria, 2016, https://www.r-project.org
  12. Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5), 1189–1232. https://doi.org/10.1214/aos/1013203451

Citations

  1. https://doi.org/10.1016/j.eja.2026.128413
  2. Feijão, E., Canada, P., Tanner, S. E., Duarte, B., Figueiredo, A., Fonseca, V. F., & Matos, A. R. (2027). Integrating fatty acid signatures through machine learning for traceability and nutritional profiling of wild and farmed gilthead sea bream (Sparus aurata). Food Control, 193, Article 112672. https://doi.org/10.1016/j.foodcont.2026.112672
  3. Buchholz, S., Ryo, M., Bi, M., von der Lippe, M., & Kowarik, I. (2027). Urbanization, historical connectivity and socioeconomic status shape multispecies grassland diversity in a metropolitan region. Landscape and Urban Planning, 278, Article 105816. https://doi.org/10.1016/j.landurbplan.2026.105816
  4. Andrus, R. A., Steed, B., Egan, J., Lestina, J., Steed, J., Bennett, P., Meddens, A. J. H., & Goodburn, J. (2026). A multi‐scale assessment of interior Douglas‐fir tree mortality for hazard and risk assessments. Ecosphere, 17(1). https://doi.org/10.1002/ecs2.70490
  5. Milburn, S., Krochta, M., & Chang, H. (2026). What Controls the Spatial Variation in Thermal Sensitivity in a Cascades River Basin During an Extreme Heat Year?. Hydrological Processes, 40(10), Article e70745. https://doi.org/10.1002/hyp.70745
  6. Çelik, M. A., & Pacal, I. (2026). Solar Radiation Forecasting in Sparse‐Observation Regions Using Long‐Term Reanalysis Data and Leakage‐Aware Boosting. International Journal of Climatology, Article e70489. https://doi.org/10.1002/joc.70489
  7. https://doi.org/10.1002/jwmg.70314
  8. Filali, Y., & El Asri, H. (2026). Explainable Artificial Intelligence in Credit Scoring: A Novel Framework Integrating Decision Trees and LLMs. In Lecture Notes in Networks and Systems (pp. 29–39). Springer Nature Switzerland. https://doi.org/10.1007/978-3-032-07718-9_3
  9. https://doi.org/10.1007/978-3-032-30849-8_4
  10. Álvarez, M., Boj, E., & Grané, A. (2026). Explainable Distance-Based Predictive Models. In Studies in Classification, Data Analysis, and Knowledge Organization (pp. 1–8). Springer Nature Switzerland. https://doi.org/10.1007/978-3-032-32009-4_1
  11. https://doi.org/10.1007/978-3-032-45473-7_3
  12. Vinci, F., Park, G., van der Aalst, W. M. P., & de Leoni, M. (2026). Reliable and Configurable Process Simulations via Probabilistic White-Box Models. In Lecture Notes in Computer Science (pp. 337–352). Springer Nature Singapore. https://doi.org/10.1007/978-981-95-5015-9_24
  13. https://doi.org/10.1007/s00442-026-06011-3
  14. https://doi.org/10.1007/s00477-026-03213-2
  15. https://doi.org/10.1007/s11357-026-02183-1
  16. Sen, J., & Bhattacharya, S. (2026). XAI in Heart Disease: A Review of Concepts, Applications and Limitations. Archives of Computational Methods in Engineering, 33(7), 10413–10447. https://doi.org/10.1007/s11831-026-10621-8
  17. Belleville, P., Keuper, F., Ferchaud, F., Mary, B., Heinesch, B., Dumont, B., & Léonard, J. (2026). Crop residues moderately influence cumulative N2O emissions through their carbon to nitrogen ratio in a 12-year experiment in northern France. Agronomy for Sustainable Development, 46(1), Article 5. https://doi.org/10.1007/s13593-025-01072-9
  18. Maxwell, A. E., Ramezan, C. A., & He, Y. (2026). Tuning hyperparameters and improving models. In Supervised Learning in Remote Sensing and Geospatial Science (pp. 191–214). Elsevier. https://doi.org/10.1016/b978-0-443-29306-1.00008-9
  19. Dynarski, K. A., Adeleke, E., Baumhardt, R. L., Burke, J., Carter, T., DeLaune, P., Gan, H., Grossman, J., Heitman, J., Kandanool, D., Lewis, K., Naasko, K., O’Kelley, R., Osmond, D., Perrone, S., Presley, D., Racelis, A., Tao, H., Tomlinson, P., … Wills, S. A. (2026). Soil health indicator variability and management sensitivity across soils, bioregions, and agricultural systems. Agriculture, Ecosystems & Environment, 399, Article 110203. https://doi.org/10.1016/j.agee.2025.110203
  20. Schiller, J., Jänicke, C., Reckling, M., & Ryo, M. (2026). Temporal and spatial crop diversity are related and affected by farm and landscape configurations. Agricultural Systems, 234, 104685. https://doi.org/10.1016/j.agsy.2026.104685
  21. Silva, S. H. G., de Pádua, E. J., Mancini, M., Gomide, L. R., Mesquita, L. F., Teixeira, W. G., Andrade, S., Matos, L. M. S., Gomes, J. B. V., Curcio, G. R., de Araújo, E. F., de Menezes, M. D., Ribeiro, P. G., Ramos, S. J., Junior, C. F. C., Fernandes, A. R., Silva, B. P. C., Andrade, V. T., Carvalho, G. R., … Curi, N. (2026). Portable X-ray fluorescence spectrometry library for Brazilian soils: chemical characterization and prediction of soil particle size fractions across all biomes. CATENA, 274, Article 110531. https://doi.org/10.1016/j.catena.2026.110531
  22. Malik, M. I., Lou, W., Bisleri, G., Connelly, K., & Bhat, V. (2026). Machine Learning Reveals How Depression Influences Chest Pain Localisation and Its Predictive Value for Coronary Artery Disease. Canadian Journal of Cardiology, 42(1), 166–176. https://doi.org/10.1016/j.cjca.2025.09.017
  23. Rossi, J.-P., Streito, J.-C., İpekdal, K., & Constant, N. (2026). Climate change reshapes suitable areas for the honeydew moth Cryptoblabes gnidiella in the Mediterranean. Climate Change Ecology, 12, Article 100121. https://doi.org/10.1016/j.ecochg.2026.100121
  24. Sataral, M., Buchori, D., Triwidodo, H., Hidayat, P., Asy'Ari, R., Subagyo, V. N. O., Asmoro, P. P., Fahri, F., Katili, H. A., & Zulfajrin, M. (2026). Adaptive algorithms for pest management: A comparative study of machine learning for predicting Spodoptera frugiperda distribution in Java, Indonesia. Ecological Frontiers, 46(6), 2335–2351. https://doi.org/10.1016/j.ecofro.2026.06.009
  25. Perez-Verdin, G., Valles-Arriaga, K., Perez-Martinez, M. G., Villanueva-Diaz, J., & Wehenkel, C. (2026). Modelling the impacts of streamflow reduction on the radial growth of bald cypress (Taxodium mucronatum Ten.) in northwestern Mexico. Ecohydrology & Hydrobiology, 26(2), 100734. https://doi.org/10.1016/j.ecohyd.2026.100734

1–25 of 642