Skip to content

Commit 71f35e6

Browse files
committed
adjusting docstrings for documentation
1 parent 4f6b088 commit 71f35e6

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

mambular/models/fttransformer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class FTTransformerRegressor(SklearnBaseRegressor):
6464
Epsilon value for layer normalization.
6565
transformer_dim_feedforward : int, default=512
6666
Dimensionality of the feed-forward layers in the transformer.
67+
cat_encoding : str, default="int"
68+
whether to use integer encoding or one-hot encoding for cat features.
6769
n_bins : int, default=50
6870
The number of bins to use for numerical feature binning. This parameter is relevant
6971
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -171,6 +173,8 @@ class FTTransformerClassifier(SklearnBaseClassifier):
171173
Epsilon value for layer normalization.
172174
transformer_dim_feedforward : int, default=512
173175
Dimensionality of the feed-forward layers in the transformer.
176+
cat_encoding : str, default="int"
177+
whether to use integer encoding or one-hot encoding for cat features.
174178
n_bins : int, default=50
175179
The number of bins to use for numerical feature binning. This parameter is relevant
176180
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -278,6 +282,8 @@ class FTTransformerLSS(SklearnBaseLSS):
278282
Epsilon value for layer normalization.
279283
transformer_dim_feedforward : int, default=512
280284
Dimensionality of the feed-forward layers in the transformer.
285+
cat_encoding : str, default="int"
286+
whether to use integer encoding or one-hot encoding for cat features.
281287
n_bins : int, default=50
282288
The number of bins to use for numerical feature binning. This parameter is relevant
283289
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.

mambular/models/mambular.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ class MambularRegressor(SklearnBaseRegressor):
7979
Whether to append a cls to the end of each 'sequence'.
8080
shuffle_embeddings : bool, default=False.
8181
Whether to shuffle the embeddings before being passed to the Mamba layers.
82+
layer_norm_eps : float, default=1e-05
83+
Epsilon value for layer normalization.
84+
AD_weight_decay : bool, default=False
85+
whether weight decay is also applied to A-D matrices.
86+
BC_layer_norm: bool, default=True
87+
whether to apply layer normalization to B-C matrices.
88+
cat_encoding : str, default="int"
89+
whether to use integer encoding or one-hot encoding for cat features.
8290
n_bins : int, default=50
8391
The number of bins to use for numerical feature binning. This parameter is relevant
8492
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -198,6 +206,14 @@ class MambularClassifier(SklearnBaseClassifier):
198206
Whether to use learnable feature interactions before passing through mamba blocks.
199207
shuffle_embeddings : bool, default=False.
200208
Whether to shuffle the embeddings before being passed to the Mamba layers.
209+
layer_norm_eps : float, default=1e-05
210+
Epsilon value for layer normalization.
211+
AD_weight_decay : bool, default=False
212+
whether weight decay is also applied to A-D matrices.
213+
BC_layer_norm: bool, default=True
214+
whether to apply layer normalization to B-C matrices.
215+
cat_encoding : str, default="int"
216+
whether to use integer encoding or one-hot encoding for cat features.
201217
n_bins : int, default=50
202218
The number of bins to use for numerical feature binning. This parameter is relevant
203219
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -320,6 +336,14 @@ class MambularLSS(SklearnBaseLSS):
320336
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
321337
shuffle_embeddings : bool, default=False.
322338
Whether to shuffle the embeddings before being passed to the Mamba layers.
339+
layer_norm_eps : float, default=1e-05
340+
Epsilon value for layer normalization.
341+
AD_weight_decay : bool, default=False
342+
whether weight decay is also applied to A-D matrices.
343+
BC_layer_norm: bool, default=True
344+
whether to apply layer normalization to B-C matrices.
345+
cat_encoding : str, default="int"
346+
whether to use integer encoding or one-hot encoding for cat features.
323347
numerical_preprocessing : str, default="ple"
324348
The preprocessing strategy for numerical features. Valid options are
325349
'binning', 'one_hot', 'standardization', and 'normalization'.

mambular/models/tabtransformer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class TabTransformerRegressor(SklearnBaseRegressor):
6363
Epsilon value for layer normalization.
6464
transformer_dim_feedforward : int, default=512
6565
Dimensionality of the feed-forward layers in the transformer.
66+
cat_encoding : str, default="int"
67+
whether to use integer encoding or one-hot encoding for cat features.
6668
n_bins : int, default=50
6769
The number of bins to use for numerical feature binning. This parameter is relevant
6870
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -170,6 +172,8 @@ class TabTransformerClassifier(SklearnBaseClassifier):
170172
Epsilon value for layer normalization.
171173
transformer_dim_feedforward : int, default=512
172174
Dimensionality of the feed-forward layers in the transformer.
175+
cat_encoding : str, default="int"
176+
whether to use integer encoding or one-hot encoding for cat features.
173177
n_bins : int, default=50
174178
The number of bins to use for numerical feature binning. This parameter is relevant
175179
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.
@@ -277,6 +281,8 @@ class TabTransformerLSS(SklearnBaseLSS):
277281
Epsilon value for layer normalization.
278282
transformer_dim_feedforward : int, default=512
279283
Dimensionality of the feed-forward layers in the transformer.
284+
cat_encoding : str, default="int"
285+
whether to use integer encoding or one-hot encoding for cat features.
280286
n_bins : int, default=50
281287
The number of bins to use for numerical feature binning. This parameter is relevant
282288
only if `numerical_preprocessing` is set to 'binning' or 'one_hot'.

0 commit comments

Comments
 (0)