(self, embedding_var)
Do setup so that we can view word embedding visualization in Tensorboard, as described here:
    https://www.tensorflow.org/get_started/embedding_viz
    Make the vocab metadata file, then make the projector config file pointing to it.
Do setup so that we can view word embedding visualization in Tensorboard, as described here:
    https://www.tensorflow.org/get_started/embedding_viz
    Make the vocab metadata file, then make the projector config file pointing to it.
Do setup so that we can view word embedding visualization in Tensorboard as described here : https : // www . tensorflow . org / get_started / embedding_viz Make the vocab metadata file then make the projector config file pointing to it .
def _add_emb_vis(self, embedding_var):
    """Do setup so that we can view word embedding visualization in Tensorboard, as described here:
    https://www.tensorflow.org/get_started/embedding_viz
    Make the vocab metadata file, then make the projector config file pointing to it."""
    train_dir = os.path.join(FLAGS.log_root, "train")
    vocab_metadata_path = os.path.join(train_dir, "vocab_metadata.tsv")
    self._vocab.write_metadata(vocab_metadata_path) # write metadata file
    summary_writer = tf.summary.FileWriter(train_dir)
    config = projector.ProjectorConfig()
    embedding = config.embeddings.add()
    embedding.tensor_name = embedding_var.name
    embedding.metadata_path = vocab_metadata_path
    projector.visualize_embeddings(summary_writer, config)
def _add_emb_vis ( self , embedding_var ) : train_dir = os . path . join ( FLAGS . log_root , "train" ) vocab_metadata_path = os . path . join ( train_dir , "vocab_metadata.tsv" ) self . _vocab . write_metadata ( vocab_metadata_path ) # write metadata file summary_writer = tf . summary . FileWriter ( train_dir ) config = projector . ProjectorConfig ( ) embedding = config . embeddings . add ( ) embedding . tensor_name = embedding_var . name embedding . metadata_path = vocab_metadata_path projector . visualize_embeddings ( summary_writer , config )