Feature Store 用の特徴量を定義する
Feature Store を作成する前に、読み込む特徴量の関係性、型、構造を Feature Store が認識できるよう、特徴量を形式的に定義しておく必要があります。この演習では、Feature Store の作成に備えていくつかの特徴量を形式的に定義します。Field は feast からインポート済みです。
この演習はコースの一部です
End-to-End Machine Learning
演習の手順
- Feast の
Fieldクラスを使って、cp、thalach、ca、thalの特徴量を定義してください。
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# 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)