scienceai / tsne-js

t-distributed stochastic neighbor embedding (t-SNE) algorithm implemented in JavaScript
https://scienceai.github.io/tsne-js
Apache License 2.0
243 stars 36 forks source link

document (sparse) data format #4

Open 3bst0r opened 8 years ago

3bst0r commented 8 years ago

Please document the data format that the tsne model wants with type 'sparse'. I tried a nested array like [[i_11,...i_1j],...[i_n1,...i_nk]] where i_rs are the indices of the set values but that did not work.

3bst0r commented 8 years ago

for anyone wondering, it seems to be [ [i1, j1], ... , [in, jn] ] where i,j are the indices of the non-zero values.