def test_rename_multioutput(es): feat = ft.Feature(es['log'].ww['product_id'], parent_dataframe_name='customers', primitive=NMostCommon(n=2)) new_name = 'session_test' new_names = ['session_test[0]', 'session_test[1]'] check_rename(feat, new_name, new_names)
def test_rename(es): feat = ft.Feature(es['log']['id'], parent_entity=es['sessions'], primitive=Count) new_name = 'session_test' new_names = ['session_test'] check_rename(feat, new_name, new_names)
def test_rename(es): feat = ft.Feature( es["log"].ww["id"], parent_dataframe_name="sessions", primitive=Count ) new_name = "session_test" new_names = ["session_test"] check_rename(feat, new_name, new_names)
def test_rename_featureoutputslice(es): multi_output_feat = ft.Feature(es['log'].ww['product_id'], parent_dataframe_name='customers', primitive=NMostCommon(n=2)) feat = ft.feature_base.FeatureOutputSlice(multi_output_feat, 0) new_name = 'session_test' new_names = ['session_test'] check_rename(feat, new_name, new_names)
def test_rename_multioutput(es): feat = ft.Feature( es["log"].ww["product_id"], parent_dataframe_name="customers", primitive=NMostCommon(n=2), ) new_name = "session_test" new_names = ["session_test[0]", "session_test[1]"] check_rename(feat, new_name, new_names)
def test_rename_featureoutputslice(es): multi_output_feat = ft.Feature( es["log"].ww["product_id"], parent_dataframe_name="customers", primitive=NMostCommon(n=2), ) feat = ft.feature_base.FeatureOutputSlice(multi_output_feat, 0) new_name = "session_test" new_names = ["session_test"] check_rename(feat, new_name, new_names)
def test_rename(es): feat = ft.Feature(es['log'].ww['id'], parent_dataframe_name='sessions', primitive=Count) new_name = 'session_test' new_names = ['session_test'] check_rename(feat, new_name, new_names)