layer_aggregate_time_dist_wrapper: Aggregation layer

View source: R/custom_layers.R

layer_aggregate_time_dist_wrapperR Documentation

Aggregation layer

Description

Aggregate output of time distribution representations using sum, max and/or mean function.

Usage

layer_aggregate_time_dist_wrapper(
  load_r6 = FALSE,
  method = "sum",
  multi_in = FALSE
)

Arguments

load_r6

Whether to load the R6 layer class.

method

At least one of the options, ⁠"sum", "max"⁠ or "mean".

multi_in

Whether to aggregate for a model with multiple inputs (and shared weights).

Value

A keras layer applying pooling operation(s).

Examples



library(keras)
l <- layer_aggregate_time_dist_wrapper() 


GenomeNet/deepG documentation built on Jan. 25, 2025, 12:05 a.m.