mr2.nn.FourierFeatures
- class mr2.nn.FourierFeatures[source]
Bases:
ModuleFourier feature encoding layer.
Projects input features into a higher dimensional space using random Fourier features. Used in INRs and to embed the time or other continuous variables.
- __init__(n_features_in: int, n_features_out: int, std: float = 1.0)[source]
Initialize Fourier feature encoding layer.