Comments (9)
Predicting which clusters new points belong be done simply w/ the cluster membership probabilities for either the default clustering returned or for the clusters returned by cutree
-ing the hierarchy (see this issue).
One small technical issue is that since both DBSCAN and HDBSCAN are unsupervised frameworks for clustering, and the predicted clusters won't necessarily match the result of e.g. running DBSCAN/HDBSCAN on the original data set w/ the new data instead, i.e. cluster(X) + predict(new X) != cluster(X + new X)
. But if people are fine with this w/ DBSCAN then I don't see why not to add this functionality to HDBSCAN
from dbscan.
Predicting cluster membership on new data is a useful thing and should be added.
from dbscan.
sounds good, i will try to create a PR.
Predicting which clusters new points belong be done simply w/ the cluster membership probabilities for either the default clustering returned or for the clusters returned by
cutree
-ing the hierarchy (see this issue).
@peekxc could you clarify what you mean by that? I'm not entirely sure how to implement your suggestions. what do you mean by the "default clustering"?
from dbscan.
@moredatapls What I mean is that HDBSCAN is not a singular clustering algorithm per-se. If you run hdbscan
, it creates a hierarchy, optimizes a mass-sensitive criterion to generate a set of local 'cuts' in the hierarchy. The clusters resulting from these cuts are what I refer to as the 'default' clustering.
But HDBSCAN isn't limited to just those local cuts, you can also use it as you would with a more traditional cluster hierarchy, e.g.
data("DS3")
res <- hdbscan(DS3, minPts = 50)
cutree(res$hc, k = 8)
For the prediction though, I think the default clustering is fine.
from dbscan.
I think the default clustering is fine. I have now extracted the predict functions into its own file predict.R. Please put the code for HDBSCAN there.
from dbscan.
@peekxc: Please review the code.
from dbscan.
+1 for a predict.hdbscan, it is something we need if we want to implement https://github.com/michalovadek/top2vecr and put a package on CRAN for that.
from dbscan.
hdbscan has now a predict function.
from dbscan.
thanks!
from dbscan.
Related Issues (20)
- some strange results of sNN function HOT 7
- Discrepancies in outlier score between HDBSCAN R and python HOT 7
- Implement Density-Based Clustering Validation (DBCV) HOT 2
- BD-trees
- DBSCAN with categorica/factor/dummy variables HOT 1
- hdbscan HOT 2
- LOF edge case HOT 2
- LOF fails after upgrading to dbscan 1.1-6 HOT 2
- Possible Memory Leak HOT 2
- kNN crashing (segfault) when matrix has Inf values HOT 1
- mrdist error in large datasets HOT 3
- frNN object created from scratch couldn't be used in dbscan HOT 6
- Error in mrd(x_dist, coredist) : number of mutual reachability distance values and size of the distances do not agree. HOT 6
- DBSCAN for trajectories HOT 4
- Getting an error when using predict: x has to be a numeric matrix. HOT 2
- may you clarify is multi-density clustering is implemented, since it is mentioned on references ? HOT 1
- R session aborted in pointdensity() HOT 4
- Add broom tidier methods HOT 3
- Allow setting cluster_selection_epsilon in hdbscan() HOT 4
- `hdbscan` documenting params that are not used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbscan.