Ive tried to reduce a 300 dimension array from kmeans into 2 dimensions. For storing the double values I decided to use the sparsevector class. After some debug I saw that everytime I want to get the values from the sparsevector I got only 0.0, even if I use the list or arraycopy method. I only have numerical values in the vector. DenseVector works as expected. Also, conversion into 2 Dimensions work. Ive tried Java 8-11.
I
ve tried to reduce a 300 dimension array from kmeans into 2 dimensions. For storing the double values I decided to use the sparsevector class. After some debug I saw that everytime I want to get the values from the sparsevector I got only 0.0, even if I use the list or arraycopy method. I only have numerical values in the vector. DenseVector works as expected. Also, conversion into 2 Dimensions work. I
ve tried Java 8-11.