How to represent Word2Vec model to graph? (or convert a 1x300 numpy array to just 1x2 array)

General Tech Learning Aids/Tools 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Learning Aids/Tools related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I have a 1x300 numpy array from my Word2Vec model which is returns like this:

[ -2.55022556e-01   1.06162608e+00  -5.86191297e-01  -4.43067521e-01
   4.46810514e-01   4.31743741e-01   2.16610283e-01   9.27684903e-01
  -4.47879761e-01  -9.11142007e-02   3.27048987e-01  -8.05553675e-01
  -8.54483843e-02  -2.85595834e-01  -2.70745698e-02  -3.08014955e-02
   1.53204888e-01   3.16114485e-01  -2.82659411e-01  -2.98218042e-01
  -1.03240972e-02   2.12806061e-01   1.63605273e-01   9.42423999e-01
   1.20789325e+00   4.11570221e-01  -5.46323597e-01   1.95108235e-01
  -4.53743488e-01  -1.28625661e-01  -7.43277609e-01   1.11551750e+00
  -4.51873302e-01  -1.14495361e+00  -6.69551417e-02   6.88364863e-01
  -6.01781428e-01  -2.36386538e-01  -3.64305973e-01   1.18274912e-01
   2.03438237e-01  -1.01153564e+00   6.67958856e-01   1.80363625e-01
   1.26524955e-01  -2.96024203e-01  -9.93479714e-02  -4.93405871e-02
   1.02504417e-01   7.63318688e-02  -3.68398607e-01   3.03587675e-01
  -2.90227026e-01   1.51891649e-01  -6.93689287e-03  -3.99766594e-01
  -1.86124116e-01  -2.86920428e-01   2.04880714e-01   1.39914978e+00
   1.84370011e-01  -4.58923727e-01   3.91094625e-01  -7.52937734e-01
   3.05261135e-01  -4.55163687e-01   7.22679734e-01  -3.76093656e-01
   6.05900526e-01   3.26470852e-01   4.72957864e-02  -1.18182398e-01
   3.51043999e-01  -3.07209432e-01  -6.10330477e-02   4.14131492e-01
   7.57511556e-02  -6.48704231e-01   1.42518353e+00  -9.20495167e-02
   6.36665523e-01   5.48510313e-01   5.92754841e-01  -6.29535854e-01
  -4.47180003e-01  -8.99413109e-01  -1.52441502e-01  -1.98326513e-01
   4.74154204e-01  -2.07036674e-01  -6.70400202e-01   6.67807996e-01
  -1.04234733e-01   7.16163218e-01   3.32825005e-01   8.20083246e-02
   5.88186264e-01   4.06852067e-01   2.66174138e-01  -5.35981596e-01
   3.26077454e-02  -4.04357493e-01   2.19569445e-01  -2.74264365e-01
  -1.65187627e-01  -4.06753153e-01   6.12065434e-01  -1.89857081e-01
  -5.56927800e-01  -6.78636551e-01  -7.52498448e-01   1.04564428e+00
   5.32510102e-01   5.05628288e-01   1.95120305e-01  -6.40793025e-01
   5.73082231e-02  -1.58281475e-02  -2.62718409e-01   1.74351722e-01
  -6.95129633e-02   3.44214857e-01  -4.24746841e-01  -2.75907904e-01
  -6.60992935e-02  -1.19041657e+00  -6.01056278e-01   5.67718685e-01
  -6.47478551e-02   1.55902460e-01  -2.48480186e-01   5.56753576e-01
   1.29889056e-01   3.91534269e-01   1.28707469e-01   1.29670590e-01
  -6.98880851e-01   2.43386969e-01   7.70289376e-02  -1.14947490e-01
  -4.31593180e-01  -6.16873622e-01   6.03831768e-01  -2.07050622e-01
   1.23276520e+00  -1.67524610e-02  -4.67656374e-01   1.00281858e+00
   5.17916441e-01  -
                                                
                                                
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.