官术网_书友最值得收藏!

TensorBoard

TensorFlow provides a handy way to visualize a variety of important aspects of our network. To be able to use this useful tool, Keras will need to create some log files that TensorBoard will read.

A way to do this is to use callbacks. A callback is a set of functions that is applied at a specified stage during the model's training. It is possible to use these functions to get a view on the internal states and statistics of the model while it's training. Is it possible to pass a list of callbacks to the .fit() method of a Keras model. The relevant methods of the callbacks will then be called at each stage of the training.

Here is an example of callbacks:

keras.callbacks.TensorBoard(log_dir='./Graph', histogram_freq=0,  
write_graph=True, write_images=True)

Then it's possible to launch the TensorBoard interface to visualize the graph in this case, but it's also possible to visualize the metrics, the loss, or even the words embedding.

To launch TensorBoard from a terminal window, simply type in the following:

tensorboard --logdir=path/to/log-directory

This command will start a server and it will be possible to access it from http://localhost:6006. With TensorBoard, it will be possible to easily compare the performances of different network architectures or parameters:

This is the screenshot of a running TensorBoard
主站蜘蛛池模板: 永州市| 乌兰浩特市| 庆元县| 北京市| 顺昌县| 阿拉善盟| 深圳市| 温州市| 定南县| 陆丰市| 竹溪县| 安龙县| 刚察县| 嘉峪关市| 锡林郭勒盟| 昌江| 施甸县| 惠州市| 莲花县| 大足县| 花垣县| 金寨县| 顺义区| 三亚市| 沾化县| 闽清县| 汉源县| 连云港市| 新闻| 邹平县| 疏附县| 老河口市| 瑞丽市| 石城县| 双柏县| 兴宁市| 景洪市| 晋江市| 华亭县| 西乌珠穆沁旗| 石门县|