Neural network App designer

2 次查看(过去 30 天)
I created an app that trains a neural network and then predicts different user inputs. I defined the net as app.net the whole training process, and I want to predict results with users input. I have problems with the predicting function, as the classify function gives me the following error, [YPred, scores] = classify(app.net1, User_NNPitstop'):
Error using classify (line 123)
Requires at least three arguments.
The predict function also gives me an error, and the test() gives NaN as a result.
The neural network whos net is class: network.
Thank you in advance!

回答(1 个)

Philip Brown
Philip Brown 2023-5-4
My guess is, instead of calling the classify() method of a deep neural network object, you are calling this classify function. That's likely happening because app.net1 is not the network object you expect it is.
Try using the debugger in AppDesigner to confirm the loaded network object is a deep neural network. It's possible that when you are importing the network (e.g. loading from file), you're not getting the network object you think you are.

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by