EdwardRaff / JSAT

Java Statistical Analysis Tool, a Java library for Machine Learning
GNU General Public License v3.0
789 stars 205 forks source link

SparseVector nulls all numerical values #83

Open Dom1001 opened 5 years ago

Dom1001 commented 5 years ago

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.

EdwardRaff commented 4 years ago

I apparently missed this... oops.

Do you have code that replicates this issue?