Hi all. Is it possible to "convince" matlab fitcsvm function to use a well-defined (not random) subset of the sample vectors for training (leaving the others for testing)? Not simply a random percentage, as set by the "'Holdout', value" pair, but a list of indices (decided by me) to exactly choose the desired samples from the whole dataset.

If I could have a percentage equal to 0 in Holdout, it would do, because the machine would be trained on all the input vectors, then I'd use "predict" on the test subset.

This is absolutely necessary for my code, because I must be able to use the same sample subsets for training etc of different classifiers.

To be clearer, when using a neural network (by patternnet, in the Neural Network Toolbox), I can decide which sample vectors to use for training, validation, and test, by net.divideFcn = 'divideind', then setting manually the indices to be used for training etc.

Thanks.

Best regards.

Giorgio

More Giorgio De Nunzio's questions See All
Similar questions and discussions