Using method=tDistributedStochasticNeighborEmbedding in combination with withDistance() is not supported.
Laurens van der Maaten says for using a custom metric, the Vantage-Point Tree needs to be changed (see here. Note that this only refers to the Barnes-Hut algorithm; exact algorithm uses no VPTree and has it's own custom distance computation in tsne.hpp.
Interestingly, tapkee already comes with an alternative VPTree implementation that supports the use of a distance callback. It also looks quite compatible.
Could the method be altered to use the functionality of neighbors/vptree.hpp and enable withDistance()?
Using
method=tDistributedStochasticNeighborEmbeddingin combination withwithDistance()is not supported.Laurens van der Maaten says for using a custom metric, the Vantage-Point Tree needs to be changed (see here. Note that this only refers to the Barnes-Hut algorithm; exact algorithm uses no VPTree and has it's own custom distance computation in
tsne.hpp.Interestingly, tapkee already comes with an alternative VPTree implementation that supports the use of a distance callback. It also looks quite compatible.
Could the method be altered to use the functionality of
neighbors/vptree.hppand enablewithDistance()?