EdwardRaff / JSAT

Java Statistical Analysis Tool, a Java library for Machine Learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SparseVector nulls all numerical values

Dom1001 opened this issue · comments

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 apparently missed this... oops.

Do you have code that replicates this issue?