scimba_torch.neural_nets.embeddings.periodic_embedding¶
Periodic and flipped embeddings.
Classes
|
Creates a one-layer network to model a flipped embedding of the input data. |
|
Creates a one-layer network to model a periodic embedding of the input data. |
- class PeriodicEmbedding(in_size, out_size, periods)[source]¶
Bases:
ModuleCreates a one-layer network to model a periodic embedding of the input data.
The learnable parameters are the weights, phases and biases of the periodic functions.
- Parameters:
in_size (
int) – dimension of inputsout_size (
int) – dimension of outputsperiods (
Tensor) – periods of the periodic functions
- weight: torch.nn.Parameter¶
the weights of the layer
- phase: torch.nn.Parameter¶
the phase of the layer
- bias: torch.nn.Parameter¶
the bias of the layer