VarIr / copac

COPAC clustering
GNU General Public License v3.0
4 stars 0 forks source link

Error in import DBSCAN #12

Closed Mariana-plr closed 1 year ago

Mariana-plr commented 1 year ago

Description

Error in: from sklearn.cluster import DBSCAN when running: from copac import COPAC

Files

copac.py

To Reproduce

from copac import COPAC

Tasks

VarIr commented 1 year ago

Apparently the module is called _dbscan since sklearn=0.22 or so. You could either

VarIr commented 1 year ago

I changed this in copac.py here. Please test, if it works.

Mariana-plr commented 1 year ago

Hello, I modified it to "from sklearn.cluster import dbscan" in my local copy and it worked. dbscan is duplicated.

VarIr commented 1 year ago

Great, glad you found an even better way.