Converts integer index values into "one hot" encoded (i.e. indicator) variables within the network so you don't have to do it in the data. Particularly helpful for discrete action spaces when not using the rlVectorQValueFunction.
The "Attention is all you need" fixed position encoding scheme. Slightly modified to support non-contigous positions.
Extract one time from a sequential input, like LSTM layer OutputMode='last', but without the LSTM part. Also modified to allow you select a particular item in the sequence.
Cite As
Jeremy Lea (2025). DLextras (https://github.com/jeremylea/DLextras/releases/tag/v0.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
mzflow
mzflow/+bijectors
mzflow/+distributions
| Version | Published | Release Notes | |
|---|---|---|---|
| 0.2 | See release notes for this release on GitHub: https://github.com/jeremylea/DLextras/releases/tag/v0.2 |
||
| 0.1 |
