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 (2026). DLextras (https://github.com/jeremylea/DLextras/releases/tag/v0.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| 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 |
