View source: R/integratedGradients.R
get_gradients | R Documentation |
Given a neural network, computes the gradients for a particular predictand (or output neuron of the model) w.r.t an input predictand field.
get_gradients(input, site, model)
input |
The predictor field in matrix/array format. |
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) |
model |
A keras sequential or functional model. |
A matrix/array of the 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.