简体   繁体   中英

ModuleNotFoundError: No module named 'sklearn.neighbours'

I am beginner in machine learning and did find what's going wrong in this module

error ...

from sklearn.neighbours import KNeighborsClassifier
ModuleNotFoundError: No module named 'sklearn.neighbours'


您导入错误,您应该像这样导入KNeighborsClassifier

from sklearn.neighbors import KNeighborsClassifier

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM