Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f28c9c3

Browse files
committed
Shuffling has been removed
1 parent b636743 commit f28c9c3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

learning.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,6 @@ def train_test_split(dataset, start = None, end = None, test_split = None):
10741074
total_size = len(examples)
10751075
val_size = int(total_size * test_split)
10761076
train_size = total_size - val_size
1077-
random.shuffle(examples)
10781077
train = examples[:train_size]
10791078
val = examples[train_size:total_size]
10801079
return train, val

0 commit comments

Comments
 (0)