Choosing data as training, validation and testing ANN
Mostrar comentarios más antiguos
Hi everyone,
I am a very new in MATLAB and ANN, I want to know how choose the data as training, validation, and testing.
if I have data
A = [1:100] % Input,,,,,,,, B = A.^2 % Target
I want to choose 80% data as training, 10% validation and 10% also as testing.. And how if I want to take it randomly..
If the questions are not very clear, please inform me. Thank you very much
Muammar
Respuesta aceptada
Más respuestas (2)
Greg Heath
el 3 de Dic. de 2011
0 votos
See the input parameter list of the newff documentation
help newff
Hope this helps.
Greg
1 comentario
Muammar
el 4 de Dic. de 2011
Greg Heath
el 6 de Dic. de 2011
0 votos
It is straightforward:
ptrn = A(1:80);
pval = A(81:90);
ptst = A(91:100);
Similarly for t and B.
Or did I miss something?
Hope this helps.
Greg
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!