View source: R/plot_taylor_and_activation_potentials.R
plot_taylor_and_activation_potentials | R Documentation |
Function that allows to take a NN and the data input values
and plot the distribution of data activation potentials
(sum of input values * weights) at all neurons together at each layer
with the Taylor expansion used in the activation functions. If any layer
is 'linear'
(usually will be the output), then that layer will not
be an approximation as Taylor expansion is not needed.
plot_taylor_and_activation_potentials(
object,
data,
max_order,
taylor_orders = 8,
constraints,
taylor_interval = 1.5,
...
)
object |
An object for which the computation of the NN2Poly algorithm is desired. Currently supports models from the following deep learning frameworks:
It also supports a named At any layer |
data |
Matrix or data frame containing the predictor variables (X) to be used as input to compute their activation potentials. The response variable column should not be included. |
max_order |
|
taylor_orders |
|
constraints |
Boolean parameter determining if the NN is constrained (TRUE) or not (FALSE). This only modifies the plots title to show "constrained" or "unconstrained" respectively. |
taylor_interval |
optional parameter determining the interval in which the Taylor expansion is represented. Default is 1.5. |
... |
Additional parameters. |
A list of plots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.