How to build a Custom neural network Layer (PG-JANET)

15 views (last 30 days)
I was assigned to implement an algoritm from a paper ("Digital Predistortion of RF Power Amplifiers With Decomposed Vector Rotation-Based Recurrent Neural Networks") in Matlab. I'm familiar with neural network, mainly using Matlab toolbox (existing) layers. However, PG-JANET is not in the existing list.
I'll appreciate any help with this: similar examples and how to start the implementation.
Thank you,
Alecs
The layer is defined by:
And:

Accepted Answer

Garmit Pant
Garmit Pant on 6 Nov 2023
Hello Alecsander
I understand that you are trying to implement the algorithm given in the paper "Digital Predistortion of RF Power Amplifiers With Decomposed Vector Rotation-Based Recurrent Neural Networks" in MATLAB but the LSTM layer, PG-JANET, is not available in the list of the existing layers.
As of MATLAB 2023B, you can define custom LSTM layer in MATLAB. You need to define the layer as an M-File.
Please follow the following MATLAB example to define a custom LSTM layer.
For further understanding, you can refer to the following MATLAB Documentation:
  1. https://www.mathworks.com/help/deeplearning/ug/define-custom-deep-learning-intermediate-layers.html - Tutorial to set up a general deep learning custom layer.
  2. https://www.mathworks.com/help/deeplearning/ug/long-short-term-memory-networks.html - Example to depict how to set up and use an LSTM neural network.
I hope this helps!
Best Regards
Garmit
  1 Comment
Alecsander Eitan
Alecsander Eitan on 8 Nov 2023
Thank you for your answer.
This is a general answer, with links to some general examples. It is quite difficult to use these examples and tutorials for building a new and different layer.

Sign in to comment.

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!