0

I am working on a dataframe and need to split it into a training set and test set, with 90% for Cross-Validation training, and 10% for a final test set. The problem is that I do not know where to specify that I need a cross validation of 90% in my train_test_split function.

Ethan
  • 1,625
  • 8
  • 23
  • 39
  • 1
    You can simpy split the dataset into 90/10 first using `train_test_split` and then use any of the cross validation options (e.g. [`GridSearchCV`](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html) on the 90%. – Oxbowerce Dec 22 '21 at 20:22
  • thank you for your help – ikram zouaoui Dec 22 '21 at 22:06
  • See this link for details. https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html – ASH Dec 24 '21 at 13:54
  • [Train/Test/Validation Set Splitting in Sklearn](https://datascience.stackexchange.com/q/15135/83275) – Pluviophile Dec 26 '21 at 08:44

0 Answers0