src.model.nan_embedding module#
- class src.model.nan_embedding.NanEmbedding(*args: Any, **kwargs: Any)[source]#
Bases:
ModuleLinear embedding layer with explicit NaN handling.
Instead of passing NaN inputs through the normal linear map, this layer replaces them with a dedicated learnable vector (nan_embed). This is useful for missing observations in trajectory data.