concept TensorBoard in category nlp

appears as: TensorBoard
Natural Language Processing in Action: Understanding, analyzing, and generating text with Python

This is an excerpt from Manning's book Natural Language Processing in Action: Understanding, analyzing, and generating text with Python.

Keras also provides some amazingly useful callbacks during the training phase that are passed into the fit method as keyword arguments, such as checkpointing, which iteratively saves the model only when the accuracy or loss has improved, or EarlyStopping, which stops the training phase early if the model is no longer improving based on a metric you provide. And probably most exciting, they have implemented a TensorBoard callback. TensorBoard works only with TensorFlow as a backend, but it provides an amazing level of introspection into your models and can be indispensable when troubleshooting and fine-tuning. Let’s get to learning! Running the compile and fit steps above should lead to the following output:

While training your model using TensorFlow (or with Keras and a TF backend), you can use TensorBoard to gain insights into your NLP models. You can use it to track model training metrics, plot network weight distributions, visualize your word embeddings, and various other things. TensorBoard is easy to use, and it connects to the training instance via your browser.

If you want to use TensorBoard side-by-side with Keras, you need to install TensorBoard like any other Python package: