ImportError: No module named model_selection

后端 未结 11 614
攒了一身酷
攒了一身酷 2021-01-30 08:16

I am trying to use train_test_split function and write:

from sklearn.model_selection import train_test_split

and this causes

11条回答
  •  感情败类
    2021-01-30 08:49

    Your sklearn version is too low, model_selection is imported by 0.18.1, so please update the sklearn version.

提交回复
热议问题