neuraltrain.models.simpleconv.SimpleConvTimeAgg

pydantic model neuraltrain.models.simpleconv.SimpleConvTimeAgg[source][source]

SimpleConv with temporal aggregation layer and optional output heads.

Parameters:
  • time_agg_out

    • “gap” : Global average pooling

    • ”linear” : Linear layer with one output

    • ”att” : Bahdanau attention layer

  • n_time_groups – Number of groups within which to apply temporal aggregation, e.g. 4 means the time dimension will be split into 4 groups and each group will be aggregated (and optionally projected) separately.

Fields:
field time_agg_out: Literal['gap', 'linear', 'att'] = 'gap'[source]
field n_time_groups: int | None = None[source]
field output_head_config: Mlp | dict[str, Mlp] | None = None[source]
build(n_in_channels: int, n_outputs: int) SimpleConvTimeAggModel[source][source]