Mar-02-2018, 05:38 PM
I assume you're using sklearn here.
The
The
train_test_split
method randomly breaks up your data; that is its purpose. By specifying random_state=0
, you will always get the same output for the same input. If your data is already in a form you want, you can just split it up yourself using splicing and what-not.