您如何搜索特定功能?
How do you search for particular features?
最后,当我尝试 featuretools 时,我正在搜索我期望的特定功能。当您拥有 > 30 个特征时,找到该特征会很耗时。
feature_names 对象(dfs 方法的第二个 return 对象)是否有搜索某些文本模式(正则表达式)的方法?
feature_names 是 "featuretools.feature_base.feature_base.IdentityFeature"
的列表
Post Scriptum:在 API 的 featuretools 文档中没有描述 return 对象
深度特征合成returns特征对象。如果您对这些对象之一调用 FeatureBase.get_name()
,它将 return 作为字符串的名称。您可以使用它来实现您想要的任何选择逻辑。例如,下面是创建名称
中 amount
的所有要素对象列表的代码
import featuretools as ft
es = ft.demo.load_mock_customer(return_entityset=True)
fl = ft.dfs(target_entity="customers", entityset=es, features_only=True)
keep = []
for feature in fl:
if "amount" in feature.get_name():
keep.append(feature)
最后,当我尝试 featuretools 时,我正在搜索我期望的特定功能。当您拥有 > 30 个特征时,找到该特征会很耗时。
feature_names 对象(dfs 方法的第二个 return 对象)是否有搜索某些文本模式(正则表达式)的方法?
feature_names 是 "featuretools.feature_base.feature_base.IdentityFeature"
的列表Post Scriptum:在 API 的 featuretools 文档中没有描述 return 对象
深度特征合成returns特征对象。如果您对这些对象之一调用 FeatureBase.get_name()
,它将 return 作为字符串的名称。您可以使用它来实现您想要的任何选择逻辑。例如,下面是创建名称
amount
的所有要素对象列表的代码
import featuretools as ft
es = ft.demo.load_mock_customer(return_entityset=True)
fl = ft.dfs(target_entity="customers", entityset=es, features_only=True)
keep = []
for feature in fl:
if "amount" in feature.get_name():
keep.append(feature)