torch_frame.nn.encoder.EmbeddingEncoder
- class EmbeddingEncoder(out_channels: int | None = None, stats_list: list[dict[StatType, Any]] | None = None, stype: stype | None = None, post_module: torch.nn.Module | None = None, na_strategy: NAStrategy | None = None)[source]
Bases:
StypeEncoder
An embedding look-up based encoder for categorical features. It applies
torch.nn.Embedding
for each categorical feature and concatenates the output embeddings.