Made extremely simple model in DeepLearningToolbox, it trained, but I can't run it

조회 수: 1 (최근 30일)
Revised wording of question.
I trained a deep learning system to add 4 numbers and return the sum.
To make it perform on new data, I think I have gotten the 4 numbers to be added into a cell array using mat2cell.
I make an array:
>> vc = [ 1; 2; 3; 4]
vc =
1
2
3
4
I convert it to a cell.
>> vca = mat2cell(vc,[4],[1])
vca =
1×1 cell array
{4×1 double}
My attempts to "index" the cell in an acceptible way have all failed. Here are some sample attempts.
>> xxy = fourplaceadderNet(vca)
Unable to use a value of type cell as an index.
>> xxy = fourplaceadderNet(vca{1,1})
Index exceeds the number of array elements. Index must not exceed 1.
>> xxy = fourplaceadderNet(vca{1})
Index exceeds the number of array elements. Index must not exceed 1.
>> xxy = fourplaceadderNet(vca(1))
Unable to use a value of type cell as an index.
>> xxy = fourplaceadderNet(vca(1:1))
Unable to use a value of type cell as an index.
What is the magic format for indexing my cell so this trained model can be used?
I understand from the "sim" man page that simple arrays might also work. I have tried that too without success.
I am now on my 6th day of messing with this.
Thanks for looking.

답변 (1개)

David Willingham
David Willingham 2022년 6월 16일
Hi William,
Can you provide the function fourplaceadder? What type of deep learning model did you train?
  댓글 수: 3
William Rhoades
William Rhoades 2022년 6월 16일
Thanks for looking, but after additional time spent working with the DL kit, even with the assistance of an in-house helper, I have decided to abandon Matlab DL. So the question is withdrawn. I will investigate the DL experiences available in the Python community.
David Willingham
David Willingham 2022년 6월 16일
Hi William,
It's unfortunate to hear you didn't resolve your issue with your in house expert. If you do want to investigate it further, you have my and the entire deep learning development teams support at MathWorks to troubleshoot your issue. (Feel free to send the full code to me personally (dwilling@mathworks.com).
Regards,
Prinicipal Deep Learning Product Manager

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

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by