【发布时间】:2020-02-27 10:26:31
【问题描述】:
我正在使用featuretoolsdfs 函数使用与时间相关的聚合原语(例如TimeSince (https://docs.featuretools.com/api_reference.html#deep-feature-synthesis))生成我的特征矩阵
feature_matrix, feature_defs = ft.dfs(entityset=es,
target_entity="users",
max_depth=2,
agg_primitives=["sum", "max", "min",
"mean", "median", "count",
"avg_time_between"],
trans_primitives=["day", "year", "month", "weekday",
"time_since_previous", "time_since",
],
cutoff_time=cutoff_times,
cutoff_time_in_index=True)
如何将 [unit] 参数传递给 trans_primitives 参数以将时间单位更改为分钟、小时等?
【问题讨论】:
标签: python featuretools feature-engineering