Parameter “stratify” from method “train_test_split” (scikit Learn)

前端 未结 5 1684
我寻月下人不归
我寻月下人不归 2020-12-22 21:37

I am trying to use train_test_split from package scikit Learn, but I am having trouble with parameter stratify. Hereafter is the code:



        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 22:11

    In this context, stratification means that the train_test_split method returns training and test subsets that have the same proportions of class labels as the input dataset.

提交回复
热议问题