CausalFIRAugmentation¶
Bases: Module
Append learned causal FIR channels to a path.
Each learned filter mixes all input channels and lags from zero through
max_lag. The output is concat(path, filtered_path) and therefore
has in_channels + num_filters channels.
A filter bias translates its output channel. Signatures and logsignatures directly following this augmentation are translation invariant, so the bias only affects them when an intervening nonlinear augmentation, such as pairwise products, converts absolute levels into increments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
in_channels
|
int
|
Input path width. |
required |
num_filters
|
int
|
Number of learned FIR channels to append. |
required |
max_lag
|
int
|
Largest causal lag included by each filter. |
required |
bias
|
bool
|
Whether the learned FIR channels have additive biases. |
True
|
padding
|
('repeat', 'zero')
|
Left-boundary values before the first path point. |
"repeat"
|
init
|
('uniform', 'normal', 'zeros')
|
FIR weight initialization. |
"uniform"
|
Source code in src/tensorsig/augmentations/__init__.py
reset_parameters ¶
Initialize the filters and optional bias.
Source code in src/tensorsig/augmentations/__init__.py
filtered ¶
Return only the learned FIR channels.