This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
forked from manujosephv/pytorch_tabular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gandalf + Refactoring (manujosephv#257)
* included entmax lib in req moved entmax and sparsemax functions out of the code base * added exp settings and benchmarks for exp * working t-softmax * added init and controllable sparsity * added learnable sparsity config * pre-commit changes * enabling GATE with no trees * removing a accidental commited checkpoint * req change for tabnet * downgrading tabnet * downgrading tabnet * again * reverting tabnet req * bug fix for regression * Add Layer to GATE for regresion without trees * bug fix in sequential * refactored common layers * refactored some more common components added rich logger * created new gandalf model * refactored gate also working * re-factored feature importance fixed bugs * pre-commit changes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added try block for lightning_lite import * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * documentation updates --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
15d8d25
commit 20499a4
Showing
35 changed files
with
1,868 additions
and
1,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,93 @@ | ||
## Layers | ||
## Embeddings | ||
|
||
::: pytorch_tabular.models.common.layers.AddNorm | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.Embedding1dLayer | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.Embedding2dLayer | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.Lambda | ||
::: pytorch_tabular.models.common.layers.PreEncoded1dLayer | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.ModuleWithInit | ||
::: pytorch_tabular.models.common.layers.SharedEmbeddings | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.MultiHeadedAttention | ||
|
||
## Gated Units | ||
::: pytorch_tabular.models.common.layers.GatedFeatureLearningUnit | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.PositionWiseFeedForward | ||
::: pytorch_tabular.models.common.layers.GEGLU | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.PreEncoded1dLayer | ||
::: pytorch_tabular.models.common.layers.ReGLU | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.Residual | ||
::: pytorch_tabular.models.common.layers.SwiGLU | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.SharedEmbeddings | ||
::: pytorch_tabular.models.common.layers.PositionWiseFeedForward | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.TransformerEncoderBlock | ||
|
||
## Soft Trees | ||
::: pytorch_tabular.models.common.layers.NeuralDecisionTree | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.layers.ODST | ||
options: | ||
heading_level: 3 | ||
|
||
## Activations | ||
|
||
::: pytorch_tabular.models.common.activations.Entmax15Function | ||
## Transformers | ||
::: pytorch_tabular.models.common.layers.AddNorm | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.Entmoid15 | ||
|
||
::: pytorch_tabular.models.common.layers.AppendCLSToken | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.GEGLU | ||
::: pytorch_tabular.models.common.layers.MultiHeadedAttention | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.PositionWiseFeedForward | ||
::: pytorch_tabular.models.common.layers.TransformerEncoderBlock | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.ReGLU | ||
|
||
## Miscellaneous | ||
::: pytorch_tabular.models.common.layers.Lambda | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.SparsemaxFunction | ||
::: pytorch_tabular.models.common.layers.ModuleWithInit | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.SwiGLU | ||
::: pytorch_tabular.models.common.layers.Residual | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.entmax15 | ||
|
||
|
||
## Activations | ||
::: pytorch_tabular.models.common.activations.Entmoid15 | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.entmoid15 | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.entmax15 | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.sparsemax | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.sparsemoid | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.t_softmax | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.TSoftmax | ||
options: | ||
heading_level: 3 | ||
::: pytorch_tabular.models.common.activations.RSoftmax | ||
options: | ||
heading_level: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
sigmoid - softmax | ||
|
||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 12.938 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
entmoid-entmax | ||
|
||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 25.504 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
sigmoid-entmax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 23.011 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
entmoid - softmax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 16.014 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
entmoid - sparsemax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 24.583 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
sparsemoid - sparsemax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 22.899 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
relu15-relu15 | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 15.541 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
entmoid - t-softmax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 21.79 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
sigmoid - t-softmax | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 19.542 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
sigmoid - t-softmax(modified) | ||
|
||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 19.415 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
entmoid - weighted softmax | ||
|
||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 18.445 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| Total | - | 12591 | 16.943 | 100 % | | ||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Oops, something went wrong.