-
Notifications
You must be signed in to change notification settings - Fork 172
Description
I have tried to created automated features using only one dataset but it doesnt work. Does it mean I can only use feature tools when I have two or more datasets. The code is as below:
#create entity
es = ft.EntitySet(id = 'clients')
#create entity of the dataset
es = es.entity_from_dataframe(entity_id = 'app', dataframe = data, index ='customerid')
Default primitives from featuretools
default_agg_primitives = ["sum", "std", "max", "skew", "min", "mean", "count", "percent_true", "num_unique", "mode"]
default_trans_primitives = ["day", "year", "month", "weekday", "haversine", "numwords", "characters"]
DFS with specified primitives
feature_matrix, feature_names = ft.dfs(entityset = es, target_entity = 'app',
trans_primitives = default_trans_primitives,
agg_primitives=default_agg_primitives,
max_depth = 2, features_only=False, verbose = True)
print('%d Total Features' % len(feature_names))
This returns same number of features in the dataframe. No new features created