Skip to content
Snippets Groups Projects
Commit 2f4652e4 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 81452491
Branches
No related tags found
No related merge requests found
......@@ -1237,10 +1237,11 @@ def split_data(num_obs, perc=0.2, skip=1):
test_idxs = np.array(test_idxs)
train_idxs = np.array(train_idxs)
np.random.shuffle(test_idxs)
np.random.shuffle(train_idxs)
#np.random.shuffle(test_idxs)
#np.random.shuffle(train_idxs)
return np.sort(train_idxs[::skip]), np.sort(test_idxs[::skip])
#return np.sort(train_idxs[::skip]), np.sort(test_idxs[::skip])
return train_idxs[::skip], test_idxs[::skip]
def test(filename, skip=1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment