torch_frame.nn.encoder.LinearEmbeddingEncoder
- class LinearEmbeddingEncoder(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]
基础类:
StypeEncoder基于线性函数的预计算嵌入特征编码器。 它在每个嵌入特征上应用一个线性层
torch.nn.Linear(emb_dim, out_channels)并连接输出嵌入。