mgarrett57 / DENCLUE

DENCLUE2.0 algorithm for python
MIT License
25 stars 17 forks source link

execute it from jupyter notebook #2

Open dlazarou opened 4 years ago

dlazarou commented 4 years ago

hi, great work on implementing this algo.

I have a 2D dataset that i would like to cluster via denclue. However it seems that there are some issues while calling the algo. Is there any example on calling denclue?

Thanks!

waidyanatha commented 3 years ago

What is your specific issue. I'm also trying to cluster lat/lon paris but encountered issue #3 .

BTW for Notebook ... place the denclue.py in a folder accessible to your notebook. I placed it in a folder called "lib"

`import sys sys.path.insert(1, '../lib') import denclue

cls_clust = denclue.DENCLUE(h=None, eps=0.005, min_density=0., metric='euclidean') cls_clust.fit(data_arr)`

the data_arr can be a numpy array np.array([your_2D_list])