-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Feature add activation to BlockRNN (#2492) * Added support for specifying PyTorch activation functions (`ReLU`, `Sigmoid`, `Tanh`, or `None`) in the `BlockRNNModel`. * Ensured that activation functions are applied between fully connected layers, but not as the final layer. * Implemented a check to raise an error if an activation function is set but the model only contains one linear layer. * Updated documentation to reflect the new activation parameter and usage examples. * Added test cases to verify the correct application of activation functions and to handle edge cases. * Update darts/models/forecasting/block_rnn_model.py Co-authored-by: madtoinou <[email protected]> * Update darts/models/forecasting/block_rnn_model.py Co-authored-by: madtoinou <[email protected]> * Feature add activation to BlockRNN (#2492) * Add a check that raise an error when activation is None and hidden_fc_sizes is greater than 0 * Update darts/models/forecasting/block_rnn_model.py Co-authored-by: Dennis Bader <[email protected]> * Feature add activation to BlockRNN (#2492) * _check_ckpt_parameters * Remove redundant raise_if * Update darts/models/forecasting/block_rnn_model.py Co-authored-by: Dennis Bader <[email protected]> * Feature add activation to BlockRNN (#2492) * Revert docstring _BlockRNNModule --------- Co-authored-by: madtoinou <[email protected]> Co-authored-by: Dennis Bader <[email protected]>
- Loading branch information
1 parent
26c5f39
commit 38c066b
Showing
2 changed files
with
53 additions
and
10 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
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