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

前端 未结 5 1682
我寻月下人不归
我寻月下人不归 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:21

    Scikit-Learn is just telling you it doesn't recognise the argument "stratify", not that you're using it incorrectly. This is because the parameter was added in version 0.17 as indicated in the documentation you quoted.

    So you just need to update Scikit-Learn.

提交回复
热议问题