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.
댓글 수: 0
답변 (1개)
David Willingham
2022년 6월 16일
Hi William,
Can you provide the function fourplaceadder? What type of deep learning model did you train?
댓글 수: 3
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 Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!