Borrar filtros
Borrar filtros

Neural network App designer

2 visualizaciones (últimos 30 días)
Cristina Barriopedro
Cristina Barriopedro el 19 de Ag. de 2021
Respondida: Philip Brown el 4 de Mayo de 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!

Respuestas (1)

Philip Brown
Philip Brown el 4 de Mayo de 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.

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by