c583ff130f7c37ad2e4077e82d7d61bf0d2ef6cf,featuretools/tests/synthesis/test_deep_feature_synthesis.py,,test_commutative,#Any#,578

Before Change


            if isinstance(base_feat.primitive, AddNumeric):
                num_add_as_base_feat += 1

    assert num_add_feats == 3
    assert num_add_as_base_feat == 9


def test_transform_consistency():

After Change


                                   max_depth=3)
    feats = dfs_obj.build_features()

    add_feats = [f for f in feats if isinstance(f.primitive, AddNumeric)]

    // Check that there are no two AddNumeric features with the same base
    // features.
    unordered_args = set()
    for f in add_feats:
        arg1, arg2 = f.base_features
        args_set = frozenset({arg1.unique_name(), arg2.unique_name()})
        unordered_args.add(args_set)

    assert len(add_feats) == len(unordered_args)


def test_transform_consistency():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Featuretools/featuretools
Commit Name: c583ff130f7c37ad2e4077e82d7d61bf0d2ef6cf
Time: 2019-07-25
Author: chrisstadler@gmail.com
File Name: featuretools/tests/synthesis/test_deep_feature_synthesis.py
Class Name:
Method Name: test_commutative


Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 7567cc646d258e40dde9790a28a9b264ccd494fb
Time: 2017-08-27
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name:


Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 5d353701dd56a1fc8abc15e4082e33b7bed2a241
Time: 2017-08-09
Author: harhro@gmail.com
File Name: mimic3models/split_train_val.py
Class Name:
Method Name: