-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
OPTICS Return all the clusters found by the extraction algorithm #12376
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
Comments
Both I'd say we can add |
Thanks. I've gone through your PR and this issue is for so-called sqlnk |
And another thing is the way we extract labels for each sample from the hierarchy structure. In sqlnk, we only consider the leaves, and I doubt whether it's correct. E.g., I guess there might be some unexpected behavior if one leaf of a node is pruned. AFAIK, R dbscan also consider the parent node. I'll need some time to think about it carefully and your insights on these questions are deeply appreciated. |
. If we use extract_method, then if users want to extract clusters with
different methods, they'll need to refit the model (i.e., compute CD and RD
again).
See #12044
|
The R OPTICS extract_xi has an option where you can tell if it should use the smallest clusters or also use the parent clusters when assigning the labels. The |
Return the leaves but store the hierarchy on the estimator??? Return at a specified max depth according to some parameter? |
Or prune to a specified |
It's more like calculate the We can start by calculating the |
??? is an expression of uncertainty.
|
We should absolutely provide a way to encapsulate multiple cluster hierarchies. I don't know how to do it, especially within the current sklearn API, but I certainly support enabling it as a feature... |
In OPTICS, the automatic extraction algorithm actually returns all possible clusters, but currently we only provide users with the clusters on the leaves. I guess we can provide users with an option to get all these clusters. (R provides clusters_xi attribute).
ping @espg @adrinjalali (I think it's even more important for extract_Xi)
The text was updated successfully, but these errors were encountered: