could anyone help me how to manually create the structured arrays
Ältere Kommentare anzeigen
I want to create the strucured array automatically as
1x1SequenceInputLayer
1x1FullyConnected Layer.
Could anyone please help me with this.
Antworten (1)
Walter Roberson
am 28 Jun. 2021
inputSize = randi(20);
outputSize = randi(20);
S = struct('SequenceInputLayer', {SequenceInputLayer(inputSize)}, ...
'FullyConnectedLayer', {FullyConnectedLayer(outputSize)});
... or are you asking for a way to bypass calling SequenceInputLayer() and FullyConnectedLayer() for some reason?
4 Kommentare
jaah navi
am 28 Jun. 2021
Walter Roberson
am 28 Jun. 2021
No, that is not an option for that layer.
Calling FullyConnectedLayer just sets up a data structure and does not do any training or adjustments itself.
jaah navi
am 28 Jun. 2021
Walter Roberson
am 29 Jun. 2021
Theoretical information about sine activation functions: https://stats.stackexchange.com/questions/402618/can-sinx-be-used-as-activation-in-deep-learning
You can define a custom activation function; see https://www.mathworks.com/help/deeplearning/ug/define-custom-deep-learning-layer.html
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!