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

Add XMeans with float array type #739

Open
viacheslav-dobrynin opened this issue Apr 2, 2023 · 5 comments
Open

Add XMeans with float array type #739

viacheslav-dobrynin opened this issue Apr 2, 2023 · 5 comments

Comments

@viacheslav-dobrynin
Copy link

viacheslav-dobrynin commented Apr 2, 2023

In our application, we use a model to turn text into a vector with the float type. Then we convert this vector into a double array for XMeans clustering, after which we convert it back to float to save it in a vector database. We would not like to make these extra conversions. It is also important for us to use float because of the lower memory consumption.

Could you make XMeans work with float arrays as well?

@haifengl
Copy link
Owner

haifengl commented Apr 2, 2023

Will do

@viacheslav-dobrynin
Copy link
Author

Thank you!

@viacheslav-dobrynin
Copy link
Author

Can I implement XMeans with float types?
If yes, what is the best way to do it?
The easiest option is to make a copy with float types instead of double.
Would that be acceptable or do you prefer another solution?

@haifengl
Copy link
Owner

haifengl commented May 2, 2023

There are many dependency class of double[]. I am research a systematic way to support different precisions, which is not easy on Java.

@viacheslav-dobrynin
Copy link
Author

understood thanks

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