Hi everyone, I have started to transition from my own Matlab ML tool suite into the Deep Learning toolbox, and I have been unable to do the most simple of problems (a vector of elements for an input and a vector of elements for an output). Do you all know how to do this with mulitple hidden layers?
I have tried two different paths, and so far, I have failed royally.
For the 'trainNetwork', I am looking for an input layer for something that isn't a matrix in time sequence or not, but I am able to output a vector of outputs.
For 'train', I have been able to figure out how to define multiple inputs, but I am unable to output more than one value from the final layer.
This is rather dumbfounding, and I hope one of you have figured out how to fix this problem.
The image below may help you all grasp what I am trying to do, and I should note that this will be integrated into an AutoML process to define the network structure, so a GUI based answer won't work.
Matlab 19a with Deep Learning Toolbox, but I could transfer to 19b (I believe) if required.

 채택된 답변

Blake Van Winkle
Blake Van Winkle 2019년 10월 25일

0 개 추천

If you are having this issue, I found that it was much easier to just use imageInputLayer but not have it defined as an image format.
For a vector: imageInputLayer([n,1,1])
For a 2d matrix: imageInputLayer([n,m,1])
For a 3d matrix: imageInputLayer([n,m,o])
Thanks for other suggestions...

추가 답변 (1개)

Sai Bhargav Avula
Sai Bhargav Avula 2019년 10월 23일

0 개 추천

Hi,
If the network also has multiple inputs and outputs, then you must define the network as a function and train the network using a custom training loop. for more information.
For a detailed understanding on how to it needs to be done refer the following link.
Hope this helps

댓글 수: 1

Blake Van Winkle
Blake Van Winkle 2019년 10월 25일
To Sai:
While I am assuming the documentation makes sense to some, it is clear as mud to me. You wouldn't happen to have an example handy?
Thanks

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by