alteryx / alteryx/featuretools

Rolling Primitives (mean, max, etc) do not work when cutoff_time is set

オープン
#1,780 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
7.7k
フォーク
915
PR マージ指標
30日以内にマージされた PR はありません

説明

When a primitive like `RollingMax` or `RollingMean` is passed into DFS along with cutoff times, the resulting features do not correctly calculate the value of interest over the specified `time_frame`. Instead, the values show up in the feature matrix unchanged from their original value.

The following is an example of this:
```python
fm, f = ft.dfs(entityset=es, target_entity='temps',
trans_primitives=[RollingMax(time_frame='2d'),
RollingMean(time_frame='2d')],
return_variable_types='all',
max_depth=1,
cutoff_time=cutoff_times,
training_window='2d',
include_cutoff_time=True
)
fm.head()
```
The results look like this:
![image](https://user-images.githubusercontent.com/64278226/136108954-83d99514-8407-4626-9aa9-19e1e312d31f.png)

(Note this is the case for the `Entity` api or the featuretools 1.0.0 api with woodwork.

A simple fix appears to be adding `uses_full_entity = True` to each impacted primitive. We should confirm that this is, indeed, a fix and also look into why we didn't think `use_full_entity` was previously necessary.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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