ImportError: cannot import name 'cross_validate'

前端 未结 3 2020
广开言路
广开言路 2021-02-18 17:00

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:13

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

    from sklearn.model_selection import train_test_split
    

    Refer Documentation

提交回复
热议问题