saehm / DruidJS

A JavaScript Library for Dimensionality Reduction
111 stars 9 forks source link

FASTMAP(d=3) returns same value in columns 0 and 2. #10

Closed Fil closed 3 years ago

Fil commented 3 years ago

Using new DR(data, ...P, 3) with FASTMAP results in a planar diagram, with transformed[0] === transformed[2]

Capture d’écran 2020-10-20 à 21 27 25

https://observablehq.com/d/f0ac59b22d266632

(I added plotly to render the maps in 3D)

saehm commented 3 years ago

As it turns out, i wasn't paying attention to cases d > 2. At least, I found the bug in the code. I will fix it.

saehm commented 3 years ago

should be fixed now :)

image