Clear Filters
Clear Filters

can you help me to solve this ?

2 views (last 30 days)
Yudawan Hidayat
Yudawan Hidayat on 17 Jun 2020
Commented: Walter Roberson on 20 Jul 2020
can you help me, i use ann for classification of blood type.
Then i used nntool in matlab with my data, i get the result like this
but why every time I run the program again, i get different results?
can you help me ?

Answers (1)

Walter Roberson
Walter Roberson on 17 Jun 2020
This is expected. Those kinds of neural networks initialize the weights randomly by default.
You have three choices:
  1. Leave it the way it is now that you know that it is intended design;
  2. Use rng() to initialize the same random number seed before each run;
  3. Or initialize the weights yourself
  7 Comments
Yudawan Hidayat
Yudawan Hidayat on 19 Jun 2020
but i have a new problem
I am using ANN tool box (nnstart) pattern recognition tool(nprtool). I trained ANN with input data (24×40 matrix) and target data (2×40 matrix).The algorithm itself dividing it into training,validation,test data. I followed the steps in tool box (nnstart) and finally the network was trained. Then it produced confusion plot and other.
My query is how to test the data from the real world after training the network with the above input and target data?
Walter Roberson
Walter Roberson on 20 Jul 2020
(Reminder to myself)

Sign in to comment.

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!