Skip to content

Commit 0693e83

Browse files
MMathisLabstes
andauthored
Update docs/source/usage.rst
Co-authored-by: Steffen Schneider <[email protected]>
1 parent eb75fc5 commit 0693e83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/usage.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,9 @@ Putting all previous snippet examples together, we obtain the following pipeline
12351235
from sklearn.model_selection import train_test_split
12361236

12371237
split_idx = int(0.8 * len(neural_data))
1238-
#suggest: 5%-20% depending on your dataset size; note this also split
1239-
early/late, which might not be ideal for your data/expt!
1238+
# suggestion: 5%-20% depending on your dataset size; note that this splits the
1239+
# into an early and late part, which might not be ideal for your data/experiment!
1240+
# As a more involved alternative, consider e.g. a nested time-series split.
12401241

12411242
train_data = neural_data[:split_idx]
12421243
valid_data = neural_data[split_idx:]

0 commit comments

Comments
 (0)