Suppose I have a 40122 matrix, and a 122-element vector. I want to convert the matrix to a dictionary, in which keys are the elements of the 122-element vector, values are vectors of the 40122 matrix. How can I get that? The reason that I do this is because I want to apply umap to the 40*122 matrix. And I wanna know the labels of points in umap. Is there anyway to get that?
My code for umap is
embedding = umap(mat, 2; n_neighbors=15, min_dist=0.001, n_epochs=200)
Plots.scatter(embedding[1,:],embedding[2,:])