36ce3c300172390d702a614b5784332b8b56343a,featuretools/tests/primitive_tests/test_transform_features.py,,test_isnull_feat,#Any#,981
Before Change
diff = Diff(value, es["log"]["session_id"])
isnull = IsNull(diff)
features = [isnull]
pandas_backend = PandasBackend(es, features)
df = pandas_backend.calculate_all_features(range(15), None)
// correct_vals_diff = [
// np.nan, 5, 5, 5, 5, np.nan, 1, 1, 1, np.nan, np.nan, 5, np.nan, 7, 7]
correct_vals = [True, False, False, False, False, True, False, False,
After Change
def test_isnull_feat(es):
value = ft.Feature(es["log"]["value"])
diff = ft.Feature([value, es["log"]["session_id"]], primitive=Diff)
isnull = ft.Feature(diff, primitive=IsNull)
features = [isnull]
df = ft.calculate_feature_matrix(entityset=es, features=features, instance_ids=range(15))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: Featuretools/featuretools
Commit Name: 36ce3c300172390d702a614b5784332b8b56343a
Time: 2019-01-18
Author: kmax12@gmail.com
File Name: featuretools/tests/primitive_tests/test_transform_features.py
Class Name:
Method Name: test_isnull_feat
Project Name: Featuretools/featuretools
Commit Name: 36ce3c300172390d702a614b5784332b8b56343a
Time: 2019-01-18
Author: kmax12@gmail.com
File Name: featuretools/tests/primitive_tests/test_transform_features.py
Class Name:
Method Name: test_haversine
Project Name: Featuretools/featuretools
Commit Name: 36ce3c300172390d702a614b5784332b8b56343a
Time: 2019-01-18
Author: kmax12@gmail.com
File Name: featuretools/tests/primitive_tests/test_transform_features.py
Class Name:
Method Name: test_arithmetic_of_identity
Project Name: Featuretools/featuretools
Commit Name: 36ce3c300172390d702a614b5784332b8b56343a
Time: 2019-01-18
Author: kmax12@gmail.com
File Name: featuretools/tests/primitive_tests/test_transform_features.py
Class Name:
Method Name: test_arithmetic_of_direct