smile icon indicating copy to clipboard operation
smile copied to clipboard

Add XMeans with float array type

Open viacheslav-dobrynin opened this issue 2 years ago • 5 comments
trafficstars

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?

viacheslav-dobrynin avatar Apr 02 '23 11:04 viacheslav-dobrynin

Will do

haifengl avatar Apr 02 '23 14:04 haifengl

Thank you!

viacheslav-dobrynin avatar Apr 02 '23 15:04 viacheslav-dobrynin

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?

viacheslav-dobrynin avatar Apr 29 '23 17:04 viacheslav-dobrynin

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

haifengl avatar May 02 '23 15:05 haifengl

understood thanks

viacheslav-dobrynin avatar May 02 '23 18:05 viacheslav-dobrynin