The PositionalEnc trait provides methods to convert a time t into an encoded vector. An encoded vector consists of numbers in [-1.0, 1.0]. It implements Absolute Fixed Vanilla Positional Encoding.
Value parameters
d
the dimensionality of the positional encoding (except for f0)
m
the length of the time series (number of time points)
Convert position/time t to an encoded vector using Length-Adjusted Sinusoidal Positional Encoding. Suggested for smaller values of d as is common for time series.
Convert position/time t to an encoded vector using Length-Adjusted Sinusoidal Positional Encoding. Suggested for smaller values of d as is common for time series.