chiphuyen / stanford-tensorflow-tutorials

This repository contains code examples for the Stanford's course: TensorFlow for Deep Learning Research.
http://cs20.stanford.edu
MIT License
10.32k stars 4.32k forks source link

Embedding visualization #78

Closed hkhatod closed 6 years ago

hkhatod commented 6 years ago

Should you be using model.embed instead of model.embed_matrix on line 129 of file 04_word2vec_visualize.py ?

chiphuyen commented 6 years ago

embed is the embedding of only the current batch of center words. we want to visualize the most frequent words, so we extract their embedding from embed_matrix.