開始使用免費開始

定義 Estimators

在上一個練習中,你已經定義了特徵欄位清單 feature_list,以及資料輸入函式 input_fn()。在這個練習中,你會在此基礎上,定義一個會使用輸入資料的 estimator

本練習屬於課程

Python 的 TensorFlow 入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Define the model and set the number of steps
model = estimator.____(feature_columns=feature_list, hidden_units=[____,____])
model.train(input_fn, steps=____)
編輯並執行程式碼