forked from dynamicslab/pysindy
-
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.
Unified input handling and dynamic input embedding (dynamicslab#63)
This commit unifies the way the different models preprocess the static and dynamic input data. Closes dynamicslab#57 and dynamicslab#74, part of dynamicslab#64. Similar to the model head, there is now an InputLayer that all (single-frequency) models use. Depending on the config, this layer will: - pass the static variables through an embedding layer (if cfg.statics_embedding is True) - pass the dynamic variables through an embedding layer (if cfg.dynamics_embedding is True) - concatenate static to each step of dynamic inputs (unless this is deactivated; e.g., for EA-LSTM this is not wanted) Key changes: - New config arguments statics_embedding, dynamics_embedding (both bool, default False). - EmbCudaLSTM is no longer needed since the functionality is now part of CudaLSTM. For backwards compatibility, the class still exists but defers to CudaLSTM. - If EA-LSTM and static embeddings are used, there will now be a linear layer between the embedding output and the lstm input to make sure the dimensions match. Previously, the linear layer would be left out if static embeddings were used.
- Loading branch information
Showing
23 changed files
with
526 additions
and
401 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
InputLayer | ||
========== | ||
|
||
.. automodule:: neuralhydrology.modelzoo.inputlayer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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,2 +1 @@ | ||
__version__ = "0.9.10-beta" | ||
|
||
__version__ = "0.9.11-beta" |
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
Oops, something went wrong.