【发布时间】:2018-09-11 10:02:59
【问题描述】:
我想尝试 featuretools,但我需要一个提示,如何将我的数据集用于我的数据集。我在熊猫数据框中有数据,这是一个回归问题。
我做了什么:
import featuretools as ft
es = ft.EntitySet(id = 'train_X')
es = es.entity_from_dataframe(entity_id="train_X",
dataframe=X,
index="Index",
variable_types={
"Market": ft.variable_types.Categorical,
"Stock": ft.variable_types.Categorical,}
)
feature_matrix_customers, features_defs = ft.dfs(entities=es,
target_entity="y")
得到一个错误:
KeyError: 'Entity 0 does not exist in train_X').
【问题讨论】:
-
您是否尝试过文档中的入门指南? docs.featuretools.com/#minute-quick-start。如果您遇到问题或有任何困惑,请告诉我们。
-
@MaxKanter 当然,我更新了我的问题。
-
目标实体应该是您在上面提供的ID。尝试将其设置为
train_X。
标签: featuretools