1 function [train test] = split_X(X, prob)
\r
3 train.varmap = X.varmap;
\r
4 test.varmap = X.varmap;
\r
8 for i=1:size(X.obs, 2)
\r
10 train.obs(next_train) = X.obs(i);
\r
11 next_train = next_train + 1;
\r
13 test.obs(next_test) = X.obs(i);
\r
14 next_test = next_test + 1;
\r