5_word2vec.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:udacity-deep-learning 作者: runhani 项目源码 文件源码
def plot(embeddings, labels):
  assert embeddings.shape[0] >= len(labels), 'More labels than embeddings'
  pylab.figure(figsize=(15,15))  # in inches
  for i, label in enumerate(labels):
    x, y = embeddings[i,:]
    pylab.scatter(x, y)
    pylab.annotate(label, xy=(x, y), xytext=(5, 2), textcoords='offset points',
                   ha='right', va='bottom')
  pylab.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号