torch_frame.nn.encoder.LinearBucketEncoder
- class LinearBucketEncoder(out_channels: Optional[int] = None, stats_list: Optional[list[dict[torch_frame.data.stats.StatType, Any]]] = None, stype: Optional[stype] = None, post_module: Optional[Module] = None, na_strategy: Optional[NAStrategy] = None)[source]
Bases:
StypeEncoderA numerical converter that transforms a tensor into a piecewise linear representation, followed by a linear transformation. The original encoding is described in “On Embeddings for Numerical Features in Tabular Deep Learning”.