scikit learn: train_test_split, can I ensure same splits on different datasets : <p>I understand that the train_test_split method splits a dataset into random train and test subsets. And using random_state=int can ensure we have the same splits on this dataset for each time the method is called.</p>

<p>My problem is slightly different.</p>

<p>I have two datasets, A and B, they contain identical sets of examples and the order of these examples appear in each dataset is also identical. But they key difference is that exmaples in each dataset uses a different sets of features. </p>

<p>I would like to test to see if the features used in A leads to better performance than features used in B. So I would like to ensure that when I call train_test_split on A and B, I can get the same splits on both datasets so that the comparison is meaningful.</p>

<p>Is this possible? Do I simply need to ensure the random_state in both method calls for both datasets are the same?</p>

<p>Thanks</p>
