API

This is the class and function reference of radshap.

shapley.Shapley

Compute the Shapley value for every element of a collection of instances that are aggregated together in a single input of a trained predictive algorithm.

shapley.RobustShapley

Compute the Shapley value while dealing with invalid inputs for every element of a collection of instances that are aggregated together in a single input of a trained predictive algorithm.

plot.plot_bars

Plot the Shapley values of different instances with a bar plot.

plot.plot_pet

Display the Shapley values of different instances on the Maxumum Intensity Projection (MIP) of a PET image.