Always post complete code that can run. don't less us geuss what is the size/class of the inputs
First assumption: non_zero_entry is a integer scalar, then change the allocation to
tf = false(non_zero_entry,1);
Second assumption non_zero_entry is a vector then change
tf = tf(randperm(non_zero_entry));
to
Similarly correction must be applied for the earlier instruction
tf(1:round(training_data*end)) = true
0 Comments
Sign in to comment.