Azzera filtri
Azzera filtri

How do i test my neural network with using "if statement" commands

2 visualizzazioni (ultimi 30 giorni)
I trained two fitting neural networks one with one output and the other with three outputs.
I want to test the network performance using "predict" but i also do not want the prediction to display numbers.
instead I want it to display "Good", "bad" or "average" depending on a range of values for each statement.
and for the three output network i would like it to display for example "good", if y1= good, y2=good, y3=good. "average" if y1= good y2= avreage y3=good and so on.
How can i generate "if statement" commands that will display the prediction as statement.

Risposte (1)

osman alper altun
osman alper altun il 14 Feb 2023
Hello,
For example, once you complete the neural network simulation you can test your results as below:
testResult = sim(net,testInputs');%Here is the testing your simulation with test inputs
After this section you can check the testResults values and create the algorithm as you want.

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by