Why is cross_val_predict so much slower than fit for KNeighborsClassifier?

前端 未结 2 1272
醉话见心
醉话见心 2021-02-10 21:16

Running locally on a Jupyter notebook and using the MNIST dataset (28k entries, 28x28 pixels per image, the following takes 27 seconds.

from sk         


        
2条回答
  •  孤独总比滥情好
    2021-02-10 21:44

    cross_val_predict does a fit and a predict so it might take longer than just fitting, but I did not expect 64 times longer

提交回复
热议问题