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

Predicting the label without inserting the datapoint into model #4

Open
shivankar-p opened this issue May 31, 2024 · 1 comment
Open

Comments

@shivankar-p
Copy link

shivankar-p commented May 31, 2024

I was trying to predict the output label without inserting into model(I have already trained the model on my data). It always gives Nan. Is there any specific reason for this kind of behaviour?

I thought it should give the closest existing cluster if not fitted with the data point.

@DataOmbudsman
Copy link
Owner

It's a matter of definition I think. I see what you expect but I can also argue that clustering is about arranging already existing data points into groups. Note that in scikit-learn's DBSCAN there's no predict method, only fit and fit_predict.

As a workaround you can maybe insert the new point, get its cluster label, then delete it.

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

No branches or pull requests

2 participants