Last active
August 9, 2019 07:32
-
-
Save MaartenGr/e56ab51e0370281c55730baf00682490 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import featuretools as ft | |
import pandas as pd | |
# Create Entity | |
turnover_df = pd.read_csv('turnover.csv') | |
es = ft.EntitySet(id = 'Turnover') | |
es.entity_from_dataframe(entity_id = 'hr', dataframe = turnover_df, index = 'index') | |
# Run deep feature synthesis with transformation primitives | |
feature_matrix, feature_defs = ft.dfs(entityset = es, target_entity = 'hr', | |
trans_primitives = ['add_numeric', 'multiply_numeric'], | |
verbose=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment