- What is your use case?
- What is the domain of your problem?
- What are you trying to achieve?
- Which MATLAB functions are you using?
- Can you provide an example as to what are your inputs & expected output?
how to know the indices of the test data?
1 次查看(过去 30 天)
显示 更早的评论
I am trying to use the data used for testing only to predict the output since it is not used in training but I can't find the indices to use the data
2 个评论
Rohit Kudva
2015-7-16
Hi Wafa,
It would be nice if you could clarify your question so that the community can help you further.
- Rohit
回答(2 个)
Greg Heath
2015-7-21
Test data is not to be used to determine parameter settings.
It is to be used only for obtaining UNBIASED estimates of performance on unseen nondesign (nontraining and nonvalidation ) data.
You can explicitly choose your datadivision subsets before training by using functions dividetrain, divideblock, divideind, divideint or dividerand. Use the help and doc commands for documentation details.
Or, you can accept the dividerand default.
Either way, the indices are available from the training record tr. If
[ net tr ... ] = train( net, input, target, ... )
then
tr = tr % NO SEMICOLON!
will yield a treasure trove of post training info, including the indices of the train/val/test subsets.
Hope this helps.
Thank you for formally accepting my ANSWER
Greg
0 个评论
farzad
2015-7-24
Dear Professor Heath
shall you please refer us to some published papers from you so we can verify and give reference to your work in accademic works ?
thank you very much
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!