Comments (2)
Hi @kbarylyuk,
Regarding the min_samples
parameter:
The approach taken by the package right now is a bit different from SciKit's. In short, you are right, there are two 'min*' parameters associated with HDBSCAN. The first is minPts, which determines how the HDBSCAN hierarchy is made, i.e.
x <- as.matrix(iris[, 1:4])
cl <- dbscan::hdbscan(x, minPts = 5L)
The second, what you refer too as min_samples, is set by default to whatever the initial setting of minPts
was, i.e. min_samples = minPts,
however it can be given an alternative setting as follows:
dbscan::extractFOSC(cl$hc, minPts = <min_cluster_size>)
I recommend perusing the members of the cl
object returned by HDBSCAN. It contains several members which may be useful. One of which is the hc
element, which is an hclust
object representing the HDBSCAN hierarchy. This hierarchy is what is parsed through via extractFOSC to determine the resulting clustering.
Regarding the cluster selection
option:
As of right now, hdbscan
only supports optimizing the excess of mass functional. I'm not sure what other cluster selection methods are in the Python one. However, it's worth noting that the hc
element that was used above is indeed a valid hclust
object. hclust
objects natively have conversions to dendrogram
objects as well, so, any tools you find that work off of either hclust
or dendrogram
objects in the R world you can use w/ HDBSCAN as well. For example, you can cut the tree like you might do with other hierarchical clustering algorithms (see ?stats::cutree
), you can use the few cluster validation indices built for hierarchical clustering, and you can do a lot of dendrogram enhancements and statistics with packages like dendextend
from dbscan.
Hi @peekxc,
thank you very much for these suggestions. I'll explore these options and see if they allow me to do what I want.
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.