ImportError: No module named sklearn.cross_validation

后端 未结 14 2113
天涯浪人
天涯浪人 2020-12-04 08:14

I am using python 2.7 in Ubuntu 14.04. I installed scikit-learn, numpy and matplotlib with these commands:

sudo apt-get install build-essential python-dev p         


        
14条回答
  •  死守一世寂寞
    2020-12-04 08:33

    I guess cross selection is not active anymore. We should use instead model selection. You can write it to run, from sklearn.model_selection import train_test_split

    Thats it.

提交回复
热议问题