View source: R/integratedGradients.R
get_integrated_gradients | R Documentation |
Given a neural network, computes the integrated gradients for a particular predictand (or output neuron of the model) w.r.t an input predictand field.
get_integrated_gradients(input, model, baseline = NULL, num_steps = 50, site)
input |
The input climate4R object or predictor field. |
model |
A keras sequential or functional model. |
baseline |
The integrated gradients method attributes the prediction
at input 'x' relative to a 'baseline', computing the contribution of 'x'
to the prediction. The |
num_steps |
Number of interpolation steps between the baseline
and the input used in the computation of integrated gradients. These
steps along determine the integral approximation error. By default,
|
site |
A data frame containing the 'x' and 'y' coordinates of the desired site where to compute the gradients. e.g., site = data.frame("x" = -3.82, "y" = 43.46) |
A matrix/array of the integrated gradients of the predictions w.r.t input
J. Bano-Medina
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.