ImportError: cannot import name 'cross_validate'

前端 未结 3 1049
名媛妹妹
名媛妹妹 2021-02-18 16:41

I\'m trying to do:

from sklearn.model_selection import cross_validate

as mentioned here. But get the error:

ImportError: cannot         


        
3条回答
  •  逝去的感伤
    2021-02-18 17:10

    On the latest stable version, 0.20.0, it is located underneath model_selection.

    from sklearn.model_selection import train_test_split
    

    Refer Documentation

提交回复
热议问题