Do a leave one out cross-validation in patternnet
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mirko Job
el 17 de Dic. de 2018
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 comentarios
Respuesta aceptada
Greg Heath
el 17 de Dic. de 2018
Editada: Greg Heath
el 17 de Dic. de 2018
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Modeling and Prediction with NARX and Time-Delay Networks en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!