使用培训窗口training_window = '90分钟'运行DFS

时间:2018-06-25 09:16:30

标签: featuretools

文档示例为:

window_fm, window_features = ft.dfs(entityset=es,
   ....:                                     target_entity="customers",
   ....:                                     cutoff_time=cutoff_times,
   ....:                                     cutoff_time_in_index=True,
   ....:                                     training_window="1 hour")

当我将参数trainging_window =“ 90分钟”更改为

window_fm, window_features = ft.dfs(entityset=es,
   ....:                                     target_entity="customers",
   ....:                                     cutoff_time=cutoff_times,
   ....:                                     cutoff_time_in_index=True,
   ....:                                     training_window="90 minute")

我得到了这个结果: window_fm

Out[144]: 
            zip_code  COUNT(sessions)  COUNT(transactions)  label
customer_id                                                      
1              60091                3                   32      0
2              02139                3                   36      0
3              02139                1                    7      1
4              60091                0                    0      0
5              02139                1                   15      1

当我检查数据customer_id = 1时,COUNT(会话)似乎是2,而不是3。 是虫子吗?还是我计算错了?

0 个答案:

没有答案