Package versions:
numpy: 1.13.3
sklearn: 0.19.0
scipy: 0.19.1
I have a dense matrix svd_matrix
svd_matrix.shape
>>> (30000,50)
I want to train this on the scikit TSNE implementation using 'cosine' as the metric
tsne = sklearn.manifold.TSNE(n_components=2, random_state=0, metric='cosine')
matrix_2d = tsne.fit_transform(svd_matrix)
>>> ValueError: Metric 'cosine' not valid for algorithm 'ball_tree'
However I get the error above. I was training this model last week and it worked fine, but I have updated my package versions in the meantime, but I don't think this would cause an issue? Anyway, package versions are above.
algorithm
isn't an argument for manifold.TSNE
, so I can't give 'brute'
as an argument as suggested here
Can anyone suggest what is going wrong here and how I can fix this? Thank you