Closed dkobak closed 1 year ago
That's strange. Briefly going over the code, there doesn't seem to be any obvious reason as to why this is happening.
Just to clarify: this does not always happen with dof=100
. Does not happen with MNIST data, for example.
Very weird issue... So far I have no idea what it can be due to. But I would like to bump it -- just stumbled upon it again, and it's really annoying. There was yet another Twitter discussion about embedding 2D manifolds and I keep saying that TSNE(dof=100) works better than TSNE() for it. It does: I checked the kNN recall, and it's higher with dof=100. But I cannot check the KL loss, because openTSNE gives me a negative value for dof=100.
Hey, I found the bug!! Fixed it, and confirmed that it now works fine.
I accidentally discovered a strange bug:
Prints this:
The final embedding looks fine, but the KL divergence is negative. It also happens for some other values of
dof
but not for the defaultdof=1
.