Skip to content
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

Predict function for clustering #47

Open
ClaudioZeni opened this issue Apr 27, 2022 · 1 comment · May be fixed by #61
Open

Predict function for clustering #47

ClaudioZeni opened this issue Apr 27, 2022 · 1 comment · May be fixed by #61

Comments

@ClaudioZeni
Copy link
Collaborator

It would be useful to add a function that, after clustering is performed on a dataset, predicts labels (and possibly probabilitis) for a new unseed point.

This would be the equivalent to the "predict" for sklearn clustering algorithms.

@alexdepremia
Copy link
Collaborator

We can imagine several ways to implement this. For instance, one can perform a k-NN estimation of the label. Another option would be to use PAk interpolation and then follow the rule of assigning it to the nearest point with a higher density. However, these procedures should be tested and are not part of the original clustering algorithm. I don't think this feature is critical at the moment, we can leave it as in the case of spectral clustering on sklearn, in which the predict option is not there and only the fit and fit_predict work. https://scikit-learn.org/stable/modules/generated/sklearn.cluster.SpectralClustering.html#sklearn.cluster.SpectralClustering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants