Google的機器學習速成課程練習first_steps_with_tensor_flow的第5步的代碼:
_ = linear_regressor.train(
input_fn = lambda:my_input_fn(my_feature, targets),
steps=100
)
這里把訓練函式的回傳值賦值給了一個變數 _ ,但是后面的代碼中并沒有用到這個 _ 變數,那這里為什么不直接寫成:
linear_regressor.train(
input_fn = lambda:my_input_fn(my_feature, targets),
steps=100
)
這樣“多此一舉”的目的是什么?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/44882.html
標籤:人工智能技術
上一篇:求薦一個嗶哩嗶哩視頻下載的網站
下一篇:自適應控制求幫助
