ipex-llm/docs/readthedocs/source/doc/DLlib/Overview/visualization.md
Yuwen Hu 65cb3720f5 [Doc] Revise tooltips on decision tree and small fixes (#6197)
* Revise tooltips of decision tree

* Small list indent problem fix
2022-10-19 15:45:39 +08:00

1.6 KiB

Visualizing training with TensorBoard

With the summary info generated, we can then use TensorBoard to visualize the behaviors of the BigDL program.

  • Installing TensorBoard

    Prerequisites:

    1. Python verison: 2.7, 3.4, 3.5, or 3.6

    2. Pip version >= 9.0.1

      To install TensorBoard using Python 2, you may run the command:

      pip install tensorboard==1.0.0a4
      

      To install TensorBoard using Python 3, you may run the command:

      pip3 install tensorboard==1.0.0a4
      

      Please refer to this page for possible issues when installing TensorBoard.

  • Launching TensorBoard

    You can launch TensorBoard using the command below:

    tensorboard --logdir=/tmp/bigdl_summaries
    

    After that, navigate to the TensorBoard dashboard using a browser. You can find the URL in the console output after TensorBoard is successfully launched; by default the URL is http://your_node:6006

  • Visualizations in TensorBoard

    Within the TensorBoard dashboard, you will be able to read the visualizations of each run, including the “Loss” and “Throughput” curves under the SCALARS tab (as illustrated below):

    And “weights”, “bias”, “gradientWeights” and “gradientBias” under the DISTRIBUTIONS and HISTOGRAMS tabs (as illustrated below):