Test and validation data coming null
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to divide a signal into train, validate and test data randomly. I did it as:
[y1,Fs1,nbits1,readinfo1]=wavread('src04.wav');
[y2,Fs2,nbits2,readinfo2]=wavread('tgt04.wav');
[trainV1,valV1,testV1,trainInd,valInd,testInd] = dividerand(y1,0.6,0.2,0.2);
[trainV2,valV2,testV2] = divideind(y2,trainInd,valInd,testInd);
But the validation and test data (valV1, testV1 and valV2, tetsV2) are being displayed as empty matrix.
How can I obtain the validation and test data??
0 Kommentare
Akzeptierte Antwort
Greg Heath
am 5 Feb. 2012
help dividerand
doc dividerand
[trnind,valind,tstind] = dividerand(50,0.6,0.2,0.2)
Hope this helps.
Greg
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!