iT邦幫忙

第 11 屆 iThome 鐵人賽

DAY 19
0
Google Developers Machine Learning

想使自身成長就先從連續30天的機器學習開始吧!系列 第 19

Day19 Debugging TensorFlow

TensorFlow都開始能操做了,總還是要學學除錯(debug)時的一些方法~ 真沒想到Google的教學竟然設想至此。


從最古早(經典)的方法依序介紹,
1.Read Error Messages
2.Isolate the method in question
3.Send made-up data into the method
4.Know how to solve common problems

首先好好看錯誤,人家都要跟你說了阿... 超經典的,有看過不會打程式又總是搞不清楚狀的人就知道
https://ithelp.ithome.com.tw/upload/images/20191002/20120115yhI4YXEf66.jpg

再來,請先將錯誤區塊獨立出來,這樣你才能接下一步
https://ithelp.ithome.com.tw/upload/images/20191002/20120115XUZsH3OqHZ.jpg

待錯誤區塊獨立出來後,你能開始做測試,這個獨立區塊就是看成個黑盒子,把預期要輸入的東西輸入,對照預期得到的結果,之後開盒子檢查,沒輸入?自己捏一個出來就ok啦
https://ithelp.ithome.com.tw/upload/images/20191002/20120115urisj4mOZb.jpg

再來不太通用了,不同情境有不同的常見問題,此處以TensorFlow為例
https://ithelp.ithome.com.tw/upload/images/20191002/20120115JfB4o9HWlt.jpg


上一篇
Day18 Intro to TensorFlow 2
下一篇
Day 20 Estimator API
系列文
想使自身成長就先從連續30天的機器學習開始吧!31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言