Plots the contribution of each covariate, and the prediction, with error bars.
plot_local_explanations_gradient(
model,
input_data,
num_samples,
device = "cpu",
save_svg = NULL
)This function produces plots as a side effect and does not return a value.
An instance of LBBNN_Net with input-skip enabled.
The data to be explained (one sample).
integer, how many sample to use to produce credible intervals.
character, the device to be trained on. Default is cpu. Can be 'mps' or 'gpu'.
the path where the plot will be saved as svg, if save_svg is not NULL.