tsne

TSNE: ValueError: setting an array element with a sequence

TSNE: ValueError: setting an array element with a sequence Question: I’m trying to pass a numpy array to TSNE in order compress that to 2 columns and after that plotting with seaborn. result is a dataframe that i’ve read from a csv. arr=result.to_numpy() n_components = 2 tsne = TSNE(n_components).fit_transform(arr) arr.shape arr’s output is like this …

Total answers: 1

Plot Pytorch vectors with TSNE

Plot Pytorch vectors with TSNE Question: I am using the ESM-1b model to train it with some protein sequences. I already have the vectors and now I wanted to plot them using TSNE. However, when I try to pass the vectors to the TSNE model I get: ‘list’ object has no attribute ‘shape’` How should …

Total answers: 1