O'Reilly logo

Hands-On Natural Language Processing with Python by Rajalingappaa Shanmugamani, Rajesh Arumugam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

TensorBoard visualization

We will first look at the accuracy and loss during the training. Start TensorBoard, pointing to the log directory /tmp/tflearn_logs (default for tflearn): 

We find that both the validation and training loss decrease with the time steps. Note that the validation set we used was the same as from training, which was just a quick hack. You can set aside a separate validation set from the original data like we did for the test set. Next, we will look at the graph of the model in TensorBoard, as shown in the following screenshot:

Graph of model in TensorBoard

As explained previously, we have an input layer that feeds the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required