- Deep Learning Quick Reference
- Mike Bernico
- 401字
- 2021-06-24 18:40:13
Visualizing a broken network
TensorBoard is a great troubleshooting tool. To demonstrate this, I'm going to copy our deep neural network and break it! Luckily, breaking a neural network is really easy. Trust me, I've done it enough unintentionally that I'm basically an expert at this point.
Imagine that you have just trained a new neural network and seen that the loss looked like this:

The loss function for this network is stuck, and it's way higher than our previous run. What went wrong?
Navigate to the HISTOGRAMS section of TensorBoard and visualize the first hidden layer. Let's compare the histogram of the weights for hidden layer 1 in both networks:

For both the biases and weights of the network labelled dnn, you'll see that the weights are spread out across the graph. You might even say that the distribution of each could be normal(ish).
You can also compare the weights and biases in the distributions section. Both present mostly the same information in slightly different ways.
Now, look at the weight and biases of our broken network. Not so spread out, and in fact, the weights are all basically the same. The network isn't really learning. Every neuron in the layer appears to be more or less the same. If you look at the other hidden layers you'll see more of the same.
You can use TensorBoard exactly like this when you have a problem. Keep in mind our deep neural network has 4033, and that still qualifies as tiny in the world of deep learning. With TensorBoard, we were able to visually inspect 4033 parameters and identify a problem. TensorBoard is an amazing flashlight in the dark room that is deep learning.
- 智能傳感器技術(shù)與應(yīng)用
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實(shí)戰(zhàn)
- Verilog HDL數(shù)字系統(tǒng)設(shè)計(jì)入門與應(yīng)用實(shí)例
- Drupal 7 Multilingual Sites
- PHP開發(fā)手冊(cè)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)
- 自動(dòng)控制理論(非自動(dòng)化專業(yè))
- JSP從入門到精通
- 工業(yè)機(jī)器人維護(hù)與保養(yǎng)
- MCGS嵌入版組態(tài)軟件應(yīng)用教程
- Hadoop應(yīng)用開發(fā)基礎(chǔ)
- 機(jī)器人人工智能
- 人工智能:語言智能處理
- 空間機(jī)器人
- AVR單片機(jī)工程師是怎樣煉成的