Neural network App designer

2 Ansichten (letzte 30 Tage)
Cristina Barriopedro
Cristina Barriopedro am 19 Aug. 2021
Beantwortet: Philip Brown am 4 Mai 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!

Antworten (1)

Philip Brown
Philip Brown am 4 Mai 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.

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by