teras.layers module#
Offers layers used in building the state of the art tabular deep learning
architectures available in teras.
|
Categorical Embedding layer that create trainable embeddings for categorical features values. |
|
CategoricalExtraction layer extracts categorical features from inputs as is. |
|
CLS Token layer that makes it possible to append CLS token embedding to the input embeddings in the sequential or functional models. |
|
Extracts CLS Token embeddings. |
|
ContinuousExtraction layer extracts continuous features from inputs as is. |
|
CutMix is a regularization layer proposed by Sangdoo Yun et al. in the paper, CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features. |
|
Residual Block for Generator as used by the authors of CTGAN proposed in the paper Modeling Tabular data using Conditional GAN. |
|
Discriminator Layer based on the architecture proposed by Lei Xu et al. in the paper, "Modeling Tabular data using Conditional GAN". |
|
Feature Tokenizer layer based on FT-Transformer architecture proposed in the "Revisiting Deep Learning Models for Tabular Data" paper. |
|
Implementation of the Gumbel Softmax activation proposed by Eric Jang et al. in the paper, "Categorical Reparameterization with Gumbel-Softmax". |
|
LayerList is a list of layers, but is also a layer itself. |
|
MixUp is a regularization layer proposed by Hongyi Zhang et al. in the paper, mixup: BEYOND EMPIRICAL RISK MINIMIZATION. |
|
SAINTEmbedding layer as proposed in the paper, "SAINT: Improved Neural Networks for Tabular Data". |
|
SAINTEncoderLayer layer as proposed in the paper, "SAINT: Improved Neural Networks for Tabular Data". |
|
Multi Head Inter Sample Attention layer based on the SAINT architecture proposed in the "SAINT: Improved Neural Networks for Tabular Data" paper. |
|
Projection Head layer that is used in the contrastive learning phase of the SAINTPretrainer to project embeddings to a lower dimension. |
|
SAINT Reconstruction Head layer for SAINTPretrainer. |
|
Column Embedding layer as proposed in the "TabTransformer: Tabular Data Modeling Using Contextual Embeddings". |
|
TabNetFeatureTransformerLayer layer that serves as the building block for the TabNetFeatureTransformer layer which is proposed by Arik et al. in the "TabNet: Attentive Interpretable Tabular Learning" paper. |
|
TabNetAttentiveTransformer layer proposed by Arik et al. in the "TabNet: Attentive Interpretable Tabular Learning" paper. |
|
Transformer Encoder Layer as proposed in the original Transformer architecture in the "Attention is all you need" paper. |
|
Transformer Feed Forward layer as proposed in the original Transformers architecture, in the paper,"Attention is all you need", with a slight addition of optional Dropout layer. |