ELM-C-- icon indicating copy to clipboard operation
ELM-C-- copied to clipboard

Matlab function cross_valid_ids

Open JonathanVargas2 opened this issue 7 years ago • 1 comments

Hello friend In the example you use this function [trn vld] = cross_valid_ids( size(X,2), 10, [0.9 0.1 0] ); but I can't use it in Matlab, can you help me please? how it works ?

JonathanVargas2 avatar Jul 10 '17 19:07 JonathanVargas2

Hi,

The function returns indices for training and testing. You provide the total size of dataset (this is size(X,2) in Matlab). The random split proportions are specified in third argument - 90% for training, 10% for validation and 0% for testing. The second argument tells how many folds to do, in this case 10.

usptact avatar Jul 10 '17 20:07 usptact