![]() The split_point determines how many points we need to place into our training set, and we will need to round it in case this calculation yields any decimal points. As such, do something like this: num_points = size(X,2) Once you generate this sequence, simply use this and subset into your X and Y to extract the training and test data and labels. Use randperm to generate a random permutation of indices from 1 up to as many points as you have.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |