Do a leave one out cross-validation in patternnet
3 次查看(过去 30 天)
显示 更早的评论
Good Morning,
I have a particular set of data composed by data from inertial sensors to recognize a specific movement pattern.
This movement is made up of different actions and data are made up by several repetition of the same movement from different subjects.
I decided to use neural networks and in particular patternnet to solve the problem.
Now i decided to divide my dataset in this particuar way
- 1 subject with all his exercises will be the test data while others with respective exercises will be training data.
- 1 subject with all his exercises from training data will be the validation set while others will be training set.
This is done becouse the randomized division of training data during validation process will train the model on data that is someway similar to validation set (every subject do the exercise multiple time). Hence i thought about use a validation set as distinct as possible from the actual training set.
Now i tried to use divideblock to define indexes for all three different sets, but then i asked my self how can i iterate the process in order to do a leave one (subject) out cross validation, change indexes at every loop ? is this process done automatically by the train function ?
Thanks in advance,
0 个评论
采纳的回答
Greg Heath
2018-12-17
编辑:Greg Heath
2018-12-17
Over the past decades I have tried every cute data division technique known to man and beast.
BOTTOM LINE: The easiest sufficient technique is to perform multiple random data divisions.
There several basic decisions
1. The inherent dimensionality of the data
2. Dimensionality reduction ?
3. The relative size of the 3 subsets ( typically: 70/15/15)
4. The number of hidden layers ( typically: one)
5. The number of crossval folds ( typically: 0 OR 10 to 15 )
6. The number of repeat designs ( typically 0 to 5 )
Thank you for formally accepting my answer
Greg
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling and Prediction with NARX and Time-Delay Networks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!