Package: flashlight 0.9.0.9000
flashlight: Shed Light on Black Box Machine Learning Models
Shed light on black box machine learning models by the help of model performance, variable importance, global surrogate models, ICE profiles, partial dependence (Friedman J. H. (2001) <doi:10.1214/aos/1013203451>), accumulated local effects (Apley D. W. (2016) <arxiv:1612.08468>), further effects plots, interaction strength, and variable contribution breakdown (Gosiewska and Biecek (2019) <arxiv:1903.11420>). All tools are implemented to work with case weights and allow for stratified analysis. Furthermore, multiple flashlights can be combined and analyzed together.
Authors:
flashlight_0.9.0.9000.tar.gz
flashlight_0.9.0.9000.zip(r-4.5)flashlight_0.9.0.9000.zip(r-4.4)flashlight_0.9.0.9000.zip(r-4.3)
flashlight_0.9.0.9000.tgz(r-4.4-any)flashlight_0.9.0.9000.tgz(r-4.3-any)
flashlight_0.9.0.9000.tar.gz(r-4.5-noble)flashlight_0.9.0.9000.tar.gz(r-4.4-noble)
flashlight_0.9.0.9000.tgz(r-4.4-emscripten)flashlight_0.9.0.9000.tgz(r-4.3-emscripten)
flashlight.pdf |flashlight.html✨
flashlight/json (API)
NEWS
# Install 'flashlight' in R: |
install.packages('flashlight', repos = c('https://mayer79.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mayer79/flashlight/issues
interpretabilityinterpretable-machine-learningmachine-learningxai
Last updated 6 months agofrom:54e44b44e3. Checks:3 OK, 4 NOTE. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 20 2025 |
R-4.5-win | NOTE | Jan 20 2025 |
R-4.5-linux | NOTE | Jan 20 2025 |
R-4.4-win | NOTE | Jan 20 2025 |
R-4.4-mac | NOTE | Jan 20 2025 |
R-4.3-win | OK | Jan 20 2025 |
R-4.3-mac | OK | Jan 20 2025 |
Exports:add_shapflashlightis.flashlightis.lightis.light_breakdownis.light_breakdown_multiis.light_effectsis.light_effects_multiis.light_global_surrogateis.light_global_surrogate_multiis.light_iceis.light_ice_multiis.light_importanceis.light_importance_multiis.light_performanceis.light_performance_multiis.light_profileis.light_profile_multiis.light_profile2dis.light_profile2d_multiis.light_scatteris.light_scatter_multiis.multiflashlightis.shaplight_breakdownlight_checklight_combinelight_effectslight_global_surrogatelight_icelight_importancelight_interactionlight_performancelight_profilelight_profile2dlight_recodelight_scattermost_importantmultiflashlightplot_countsresponse
Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixMetricsWeightedmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangrpartrpart.plotscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
DEPRECATED | add_shap |
Create or Update a flashlight | flashlight flashlight.default flashlight.flashlight |
Check functions for flashlight Classes | is.flashlight is.light is.light_breakdown is.light_breakdown_multi is.light_effects is.light_effects_multi is.light_global_surrogate is.light_global_surrogate_multi is.light_ice is.light_ice_multi is.light_importance is.light_importance_multi is.light_performance is.light_performance_multi is.light_profile is.light_profile2d is.light_profile2d_multi is.light_profile_multi is.light_scatter is.light_scatter_multi is.multiflashlight is.shap |
Variable Contribution Breakdown for Single Observation | light_breakdown light_breakdown.default light_breakdown.flashlight light_breakdown.multiflashlight |
Check flashlight | light_check light_check.default light_check.flashlight light_check.multiflashlight |
Combine Objects | light_combine light_combine.default light_combine.light light_combine.list |
Combination of Response, Predicted, Partial Dependence, and ALE profiles. | light_effects light_effects.default light_effects.flashlight light_effects.multiflashlight |
Global Surrogate Tree | light_global_surrogate light_global_surrogate.default light_global_surrogate.flashlight light_global_surrogate.multiflashlight |
Individual Conditional Expectation (ICE) | light_ice light_ice.default light_ice.flashlight light_ice.multiflashlight |
Permutation Variable Importance | light_importance light_importance.default light_importance.flashlight light_importance.multiflashlight |
Interaction Strength | light_interaction light_interaction.default light_interaction.flashlight light_interaction.multiflashlight |
Model Performance of Flashlight | light_performance light_performance.default light_performance.flashlight light_performance.multiflashlight |
Partial Dependence and other Profiles | light_profile light_profile.default light_profile.flashlight light_profile.multiflashlight |
2D Partial Dependence and other 2D Profiles | light_profile2d light_profile2d.default light_profile2d.flashlight light_profile2d.multiflashlight |
DEPRECATED | light_recode |
Scatter Plot Data | light_scatter light_scatter.default light_scatter.flashlight light_scatter.multiflashlight |
Most Important Variables. | most_important |
Create or Update a multiflashlight | multiflashlight multiflashlight.default multiflashlight.flashlight multiflashlight.list multiflashlight.multiflashlight |
DEPRECATED | plot_counts |
Visualize Variable Contribution Breakdown for Single Observation | plot.light_breakdown |
Visualize Multiple Types of Profiles Together | plot.light_effects |
Plot Global Surrogate Trees | plot.light_global_surrogate |
Visualize ICE profiles | plot.light_ice |
Visualize Variable Importance | plot.light_importance |
Visualize Model Performance | plot.light_performance |
Visualize Profiles, e.g. Partial Dependence | plot.light_profile |
Visualize 2D-Profiles, e.g., of Partial Dependence | plot.light_profile2d |
Scatter Plot | plot.light_scatter |
Predictions for flashlight | predict.flashlight |
Predictions for multiflashlight | predict.multiflashlight |
Prints a flashlight | print.flashlight |
Prints light Object | print.light |
Prints a multiflashlight | print.multiflashlight |
Residuals for flashlight | residuals.flashlight |
Residuals for multiflashlight | residuals.multiflashlight |
Response of multi/-flashlight | response response.default response.flashlight response.multiflashlight |