Getting indices while using train test split in scikit
<p>In order to split my data into train and test data separately, I'm using </p>

<p><code>sklearn.cross_validation.train_test_split</code> function.</p>

<p>When I supply my data and labels as list of lists to this function, it returns train and test data in two separate lists.       </p>

<p>I want to get the indices of the train and test data elements from the original data list. </p>

<p>Can anyone help me out with this?</p>

<p>Thanks in advance</p>