Initializes a Subnetwork based on the Processed Additive Predictor
subnetwork_init(
pp,
deep_top = NULL,
orthog_fun = orthog_tf,
split_fun = split_model,
shared_layers = NULL,
param_nr = 1,
selectfun_in = function(pp) pp[[param_nr]],
selectfun_lay = function(pp) pp[[param_nr]],
gaminputs,
summary_layer = layer_add_identity
)
returns a list of input and output for this additive predictor
list of processed predictor lists from processor
keras layer if the top part of the deep network after orthogonalization is different to the one extracted from the provided network
function used for orthogonalization
function to split the network to extract head
list defining shared weights within one predictor; each list item is a vector of characters of terms as given in the parameter formula
integer number for the distribution parameter
functions defining which subset of pp to
take as inputs and layers for this subnetwork; per default the param_nr
's entry
input tensors for gam terms
keras layer that combines inputs (typically adding or concatenating)