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

1 view (last 30 days)
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.

Answers (1)

osman alper altun
osman alper altun on 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.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!