plot_taylor_and_activation_potentials {nn2poly} | R Documentation |
Plots activation potentials and Taylor expansion.
Description
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.
Usage
plot_taylor_and_activation_potentials(
object,
data,
max_order,
taylor_orders = 8,
constraints,
taylor_interval = 1.5,
...
)
Arguments
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. |
Value
A list of plots.