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

3 次查看(过去 30 天)
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

回答(1 个)

jibrahim
jibrahim 2021-7-21
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.

类别

Help CenterFile Exchange 中查找有关 Speech Recognition 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by