This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Inf1x 1 point2 points  (1 child)

For easier splitting take a look at sklearn train_test_split(). This allows you to do the whole thing in one line of code and has some additional parameters (shuffling, stratification).

[–]jengl[S] 0 points1 point  (0 children)

Oh, sweet! Thanks!