Error importing scikit-learn modules

后端 未结 9 873
盖世英雄少女心
盖世英雄少女心 2020-11-28 13:07

I\'m trying to call a function from the cluster module, like so:

import sklearn
db = sklearn.cluster.DBSCAN()

and I get the following error

9条回答
  •  悲哀的现实
    2020-11-28 13:57

    Place this line on top of the python file

    from sklearn import cluster
    

    That should do it :))

提交回复
热议问题