開始使用免費開始

為 Feature Store 定義特徵

在建立 feature store 之前,你需要先正式定義各個特徵,讓 feature store 知道要載入的特徵之間的關係、型別與結構。本練習中,你會先為多個特徵進行正式定義,做為建立 feature store 的前置作業。Field 已從 feast 匯入供你使用。

本練習屬於課程

端到端機器學習

檢視課程

練習說明

  • 使用 Feast 的 Field 類別,定義 cpthalachcathal 這些特徵。

動手互動練習

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

# Define entity and selected features
patient = Entity(name="patient", join_keys=["patient_id"])
cp = ____(name=____, dtype=Float32)
thalach = ____(name=____, dtype=Int32)
ca = ____(name=____, dtype=Int32)
thal = ____(name=____, dtype=Int32)
編輯並執行程式碼