Help trouble shooting my code that uses a voice recognition system to identify fruits in real time

1 Ansicht (letzte 30 Tage)
So I am trying to pre-train a system to take audio input, convert it to an image, and be able to identify it in real time. I am using the follow example code: https://www.mathworks.com/help/deeplearning/ug/deep-learning-speech-recognition.html
I have edited this code and am curretly stuck on the integrated Neural Network Architecture section. I am getting this following error when I try and run the section:
Error using weightedClassificationLayer
Method 'weightedClassificationLayer' is not defined for class 'weightedClassificationLayer' or is removed from MATLAB's search path.
Error in CodeExample (line 344)
weightedClassificationLayer(classWeights)];
I was wondering if anyone was able to help me trouble shoot this problem? Thanks!
My code is attached

Antworten (1)

jibrahim
jibrahim am 21 Jul. 2021
Hi Elliot,
That file (weightedClassificationLayer) is not on path by default. It is attached to the example. From the doc, open the example by clicking the button on the top right. You will be taken to a temp directory where you should find that file.

Community Treasure Hunt

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

Start Hunting!

Translated by