可视化嵌入在tensorboard中

问题描述 投票:1回答:1

我使用tensorflow脚本word2vec_basic.py并使用tf.summary保存模型:saver = tf.train.Saver()save_path = saver.save(sess,“./ w2v / model.ckpt”)

我成功地使用tensorboard可视化嵌入,但我在矢量qazxsw poi中得到单词索引如何在嵌入中获取单词而不是词汇表中的索引

python tensorflow word2vec
1个回答
0
投票

我用这个答案:enter image description here

问题是我尝试使用logdir调用tensorboard:“。/ w2v / mode.ckpt”我应该只用“w2v /”调用它

© www.soinside.com 2019 - 2024. All rights reserved.