Skip to content

tsne_plot error #1

Description

@lingtalfi

Hi, thanks for your video on word2vec (https://www.youtube.com/watch?v=_Rt4LjasO34).
I've followed it, but when I open the source in colab: https://github.com/Suji04/NormalizedNerd/blob/master/Introduction%20to%20NLP/Word2Vec.ipynb,
when I'm executing the last block of code (with the tsne_plot function), I've got this error:

AttributeError: 'list' object has no attribute 'shape'
The error is with regard with this line (which is underlined in red by the colab debugger):
coordinates = tsne_model.fit_transform(wordvecs)

I tried to convert wordvecs from an array to a numpy array, but then it creates new problems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions