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

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
主站蜘蛛池模板: 古丈县| 双江| 宁德市| 隆德县| 锡林郭勒盟| 焉耆| 玛曲县| 奉新县| 芜湖县| 丹阳市| 民县| 玉林市| 鹤壁市| 建昌县| 洪洞县| 长垣县| 丹寨县| 图木舒克市| 华池县| 宜州市| 吉首市| 修武县| 铁岭县| 顺平县| 临西县| 连山| 景德镇市| 全南县| 高雄市| 彩票| 中卫市| 西安市| 河源市| 年辖:市辖区| 沁源县| 内江市| 滦南县| 娱乐| 海晏县| 寿光市| 哈尔滨市|