Skip to content

Commit

Permalink
adjusting docstrings for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AnFreTh committed Aug 5, 2024
1 parent 4f6b088 commit 71f35e6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mambular/models/fttransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class FTTransformerRegressor(SklearnBaseRegressor):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -171,6 +173,8 @@ class FTTransformerClassifier(SklearnBaseClassifier):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -278,6 +282,8 @@ class FTTransformerLSS(SklearnBaseLSS):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down
24 changes: 24 additions & 0 deletions mambular/models/mambular.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ class MambularRegressor(SklearnBaseRegressor):
Whether to append a cls to the end of each 'sequence'.
shuffle_embeddings : bool, default=False.
Whether to shuffle the embeddings before being passed to the Mamba layers.
layer_norm_eps : float, default=1e-05
Epsilon value for layer normalization.
AD_weight_decay : bool, default=False
whether weight decay is also applied to A-D matrices.
BC_layer_norm: bool, default=True
whether to apply layer normalization to B-C matrices.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -198,6 +206,14 @@ class MambularClassifier(SklearnBaseClassifier):
Whether to use learnable feature interactions before passing through mamba blocks.
shuffle_embeddings : bool, default=False.
Whether to shuffle the embeddings before being passed to the Mamba layers.
layer_norm_eps : float, default=1e-05
Epsilon value for layer normalization.
AD_weight_decay : bool, default=False
whether weight decay is also applied to A-D matrices.
BC_layer_norm: bool, default=True
whether to apply layer normalization to B-C matrices.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -320,6 +336,14 @@ class MambularLSS(SklearnBaseLSS):
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
shuffle_embeddings : bool, default=False.
Whether to shuffle the embeddings before being passed to the Mamba layers.
layer_norm_eps : float, default=1e-05
Epsilon value for layer normalization.
AD_weight_decay : bool, default=False
whether weight decay is also applied to A-D matrices.
BC_layer_norm: bool, default=True
whether to apply layer normalization to B-C matrices.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
numerical_preprocessing : str, default="ple"
The preprocessing strategy for numerical features. Valid options are
'binning', 'one_hot', 'standardization', and 'normalization'.
Expand Down
6 changes: 6 additions & 0 deletions mambular/models/tabtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class TabTransformerRegressor(SklearnBaseRegressor):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -170,6 +172,8 @@ class TabTransformerClassifier(SklearnBaseClassifier):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down Expand Up @@ -277,6 +281,8 @@ class TabTransformerLSS(SklearnBaseLSS):
Epsilon value for layer normalization.
transformer_dim_feedforward : int, default=512
Dimensionality of the feed-forward layers in the transformer.
cat_encoding : str, default="int"
whether to use integer encoding or one-hot encoding for cat features.
n_bins : int, default=50
The number of bins to use for numerical feature binning. This parameter is relevant
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
Expand Down

0 comments on commit 71f35e6

Please sign in to comment.