How to test an input (after training) by using Neural Network ?
Show older comments
Hello,
I want to do cancer detection using NN. In the training scheme: 1) Feature_vectors [5,10000] (Five attributes by number of columns based on number of images) 2) target vectors [2,10000] (cancer 1, not cancer 0 - corresponds to relevant features) 3) [net,tr]= train(net,feature_vectors,target_vectors); By doing so, I obtain the net which is essential for testing section.
Now, I want to present an test input image and expect to get an result whether it is possibly cancer image or not cancer: 1) Y = sim(net,feature_vectors); feature_vectors:extracted features from test image and net comes from training.
Is this the correct methodology to test using neural network ? Or How should I do testing part ? How can I get percent rate of cancer results for a test image ? Can I create a confusion matrix likewise in training part ? (But we don't know the target vectors in testing part)
Would you please help me out how to correctly perform test using Neural Network in Matlab ?
Thank you,
Sertan,
2 Comments
Greg Heath
on 26 May 2015
You cannot obtain error rates without target values. However, you can predict target error rates by dividing data with targets into training, validation and target subsets.
Then if you have inputs with no corresponding targets, you can compare those inputs with the training/validation/test data inputs. If it is similar, then you estimate the quality of the results.
Probably the best way to do this is to cluster the known data. Then you can find the closest cluster.
Hope this helps.
Greg
Sertan Kaya
on 26 May 2015
Accepted Answer
More Answers (0)
Categories
Find more on Biotech and Pharmaceutical 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!