Giter Site home page Giter Site logo

wangyiqiu / dbscan-python Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 12.0 323 KB

Theoretically Efficient and Practical Parallel DBSCAN

Home Page: https://sites.google.com/view/yiqiuwang/dbscan

License: MIT License

C++ 91.01% Python 5.59% C 1.87% CMake 1.53%
clustering data-clustering data-mining dbscan dbscan-clustering machine-learning parallel-algorithm python

dbscan-python's People

Contributors

anivegesana avatar iurii-provizio avatar wangyiqiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dbscan-python's Issues

Can the memory footprint be reduced?

With a 14178107*8 vector, a 108GB memory machine is quickly used up. Is there a way to reduce the memory footprint?

The train output:

Input: 14178107 points, dimension 8
scheduler = Parlay-HomeGrown
num-threads = 16
num-cell = 12333095
compute-grid = 5.06638

Question: Setting the number of threads

I would like to perform some tests with varying number of threads. What is the most convenient way to run your method for a desired number of threads? Thank you.

DBSCAN do not free memory

Thank for your fast DBSCAN realization. I have a problem. Calling dbscan.DBSCAN(x) consums additional memory. If I call dbscan.DBSCAN(x) n time consums n*V memory, where V is memory for one dbscan.DBSCAN(x) calling.

ST-DBSCAN extension possible?

I was wondering if this implementation could be extended to deal with spatio-temporal data (allowing one to specify a threshold for both space and time eps)?

pypi module not working

hello, the compiled module works like a charm but the module from pypi fails to load the DBSCAN method with error:
cannot import name 'DBSCAN' from 'dbscan' (unknown location)

awesome work btw

Python Binding dbscan.DBSCAN Error

Hello,

I am trying to implement the library on python. Did the installation using pip3 install dbscan and I get this error:
ModuleNotFoundError: No module named 'dbscan.DBSCAN'
I am using python 3.9.12.

Thanks for the help.

dbscan result is wrong with the latest two commits

I used src/make.sh to compile the code and generated *.so file successfully, but got a wrong clustering result.
img_v2_96c4c8a6-a8c6-4168-aa6f-b2432bb8a1eg

The commit 646cc6 and 08dd4a has the same wrong results.

But I found 83c5696 which produced example.png can generate right result, but it seems to have memory leak issues.

Edit: The latest commit which work normally is 8c6afc

Large N Overflows

Hi!

I'm working with a very large dataset of over 100M points and this implementation is working beautifully except for the documented warning.

"Large n, the program behavior might be undefined due to overflow"

This causes clusters to appear that are very distant from each other. Is there any way to improve this behavior? I can clean this up by thresholding dust, but there are some manual operations I can't do that would make my segmentation much nicer due to this problem.

Thank you so much for this wonderful DBSCAN implementation. I wouldn't be complaining if it wasn't capable of handling such a huge number of points already!

Cannot import in Conda environment

In my conda environment:
>>> import dbscan Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/zpyang/anaconda3/envs/visnet/lib/python3.9/site-packages/dbscan/__init__.py", line 22, in <module> from dbscan.DBSCAN import DBSCAN ModuleNotFoundError: No module named 'dbscan.DBSCAN'
but it is successfully imported while outside the conda environment. Not sure why that's the case.

[Question] Maximum dimensionality

Why maximum dimensionality is restricted to 20? Are You planning to add this feature in the future?

I would like to use parallel version of DBSCAN algorithm to cluster high dimensional data (Transformer models embeddings which have 512 dimensions).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.