Skip to content

Commit

Permalink
Decoder final layer uses custom activation function with sub-linear s…
Browse files Browse the repository at this point in the history
…lope
  • Loading branch information
Dawith committed Nov 3, 2025
1 parent 4db453f commit 94b4dae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 87 deletions.
86 changes: 0 additions & 86 deletions decodertest.py

This file was deleted.

3 changes: 2 additions & 1 deletion model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
GlobalAveragePooling1D, LayerNormalization, Masking, Conv2D, \
MultiHeadAttention, concatenate

from model.activation import sublinear
from model.transformer import TimeseriesTransformerBuilder as TSTFBuilder

class CompoundModel(Model):
Expand Down Expand Up @@ -205,7 +206,7 @@ def _modelstack(self, input_shape, head_size, num_heads, ff_dim,
x = Conv1D(filters=input_shape[1],
kernel_size=1,
padding="valid",
activation="linear")(x)
activation=sublinear)(x)

return Model(inputs, x)

Expand Down
File renamed without changes.

0 comments on commit 94b4dae

Please sign in to comment.