Support variable window aggregation through ODFV

オープン
#6,308 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cassandra, python

調査の方向性

まず、既存の on-demand feature view API を、その raw data source、Field、Aggregation の処理を含めて追跡します。可変ウィンドウの aggregation が現在どのように検証され、永続化されているかを比較し、そのうえで、任意の input_schema によって raw source を置き換えられる箇所を特定します。提供された例がダミーソースなしで動作し、aggregation data の読み取りと書き込みをサポートすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

kind/feature

Is your feature request related to a problem? Please describe.
Currently, feast supports dynamic aggregation through ODFV from raw data source. For variable window aggregation, the features are independently computed so there is no raw source but aggregation is still being read / written.

Describe the solution you'd like
We want to allow users to not define raw data source but instead replace data source with new optional input_schema field to define raw data input type. For example, instead of passing in txn_amount from external feature view, it is submitted as input_schema. See example below:

@on_demand_feature_view(
      input_schema=[
          Field(name="txn_amount", dtype=Float64),
      ],
      schema=[
          Field(name="txn_count", dtype=Int64),
          Field(name="total_txn_amount", dtype=Float64),
          Field(name="avg_txn_amount", dtype=Float64),
      ],
      aggregations=[
          Aggregation(column="txn_amount", function="count", name="txn_count",
                      window=timedelta(days=30)),
          Aggregation(column="txn_amount", function="sum", name="total_txn_amount",
                      window=timedelta(days=30)),
          Aggregation(column="txn_amount", function="mean", name="avg_txn_amount",
                      window=timedelta(days=30)),
      ],
      entities=[user],
      write_to_online_store=True,
  )

This allows dynamic systems like cassandra or iceberg that support time series data representations, to support variable window engines which support writing and reading to / from same source.

Describe alternatives you've considered
Using dummy source (confusing, needlessly complex), using aggregation on feature view (not supported)

主要言語
Python
スター
7.4k
フォーク
1.5k
平均マージ
2日 6時間
マージ済み PR(30日)
107

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

feast-dev/feast のほかの issue

feast-dev/feast の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。