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

2 visualizaciones (últimos 30 días)
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.

Respuestas (1)

David Willingham
David Willingham el 16 de Jun. de 2022
Hi William,
Can you provide the function fourplaceadder? What type of deep learning model did you train?
  3 comentarios
William Rhoades
William Rhoades el 16 de Jun. de 2022
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 el 16 de Jun. de 2022
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

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by