-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBSCAN Clustering Algorithm #1036
Conversation
I'm not sure why but some test unrelated to this PR don't make it (ObjectDetector..) |
@asvsfs - This is amazing! Wow super cool. This has been on my list for a while now and am so glad you picked this up. I won't have time to review for awhile in depth, but I will let you know when I am able to test and give feedback. On a quick first glance, things are looking good! I'm excited to have a look. Thanks for your contribution! |
src/DBSCAN/index.js
Outdated
}; | ||
this.lastClusterId = 0; | ||
this.status = []; | ||
this.load(dataset).then(callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I'm wondering why there are two calls to this.load()
on lines 67 and 68. Is it possible that you only wanted to call this once?
If so, I think line 67 does not need to be included. We can just keep line 68.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joeyklee Corrected.
// Step 4: | ||
// use the fancy d3 to make magic | ||
function makeChart() { | ||
const dataset = dbscanModel.dataset; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion: we can use object destructuring here:
const { dataset } = dbscanModel;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear @asvsfs - thanks so much for this feature addition and for your patience and understanding. This is such an exciting addition to ml5.
NOTE: I will open an issue for a bug I noticed with how our examples.json gets created. I found that the dbscan examples weren't showing for some reason and it is because the |
@all-contributors please add @asvsfs for code example |
I've put up a pull request to add @asvsfs! π |
Dear ml5 community,
I'm making a Pull Request(PR). Please see the details below.
A good PR π
β Step 1: Which branch are you submitting to? π²
Development
β Step 2: Describe your Pull Request π
I've added a simple DBSCAN clustering algorithm to the models , it is influenced by jDBSCAN and WIKIPEDIA definition of the algorithm
A great PR ππ
β Step 3: Share a Relevant Example π¦
D3 Example is included in the project.
The best PR πππ
β Step 4: Screenshots or Relevant Documentation πΌ
I've tried to Tensorized it as much as i could since i'm completely new to Tensorflow , any help is welcome to improve the code π