Do Train and Test have to be in the same file - Neural Network Matlab Toolbox
Show older comments
Hello,
I am using Neural Network toolbox for pattern recognition. I split my data to train and test. I was able to train the network with train data. Now I want to run my test data through the network and obtain some results.
My questions are:
Is there a way to disable the training on the test data and just run the test by using the previous training results? Or do I need to combine my test and train data as one file and adjust the ratio of testing/training/validation?
I was hoping to be able to train on one set of data and then run different sets of test data without having to go through training again. Is such a thing possible?
Thank you in advance for your help.
Accepted Answer
More Answers (1)
Greg Heath
on 14 Jun 2014
No. it is not the correct way.
The inputs to confusion and plotconfusion must have the same dimensions because they should be an estimated output and the corresponding true(target) output.
Generally, PCA is not appropriate for classification because it maximizes mixture variance instead of class separation. The equivalent for classification is
help plsregress
doc plsregress
Other functions that can be useful for classifier input dimensionality reduction are
stepwise and stepwise fit (Generalized Linear (e.g., Polynomial models))
sequentialfs (More general. However, I have not used this yet)
Hope this helps
Thank you for formally accepting my answer
Greg
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!