Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TRAIN,TEST] = crossvalind('LeaveMOut',N,M), where M is an integer,
- returns logical index vectors for cross-validation of N observations by
- randomly selecting M of the observations to hold out for the evaluation
- set. M defaults to 1 when omitted. Using LeaveMOut cross-validation
- within a loop does not guarantee disjointed evaluation sets. Use K-fold
- instead.
Add Comment
Please, Sign In to add comment