Neural network App designer

2 views (last 30 days)
Cristina Barriopedro
Cristina Barriopedro on 19 Aug 2021
Answered: Philip Brown on 4 May 2023
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!

Answers (1)

Philip Brown
Philip Brown on 4 May 2023
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.

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!