579f8c923ae459c52f05be90637fbb58222c1961,tests/test_pipeline.py,VisualPipelineTests,test_fit_transform_poof_and_draw_calls,#VisualPipelineTests#,158

Before Change


            if name in {"a", "c", "e"}: continue
            step.draw.assert_called_once_with()

        pipeline.poof()
        for name, step in pipeline.named_steps.items():
            if name in {"a", "c", "e"}: continue
            step.poof.assert_called_once_with()

After Change


        Test calling fit, transform, and poof on the pipeline
        

        pipeline = VisualPipeline([
            ("a", mock.MagicMock(MockTransformer())),
            ("b", mock.MagicMock(MockVisualTransformer())),
            ("c", mock.MagicMock(MockTransformer())),
            ("d", mock.MagicMock(MockVisualTransformer())),
            ("e", mock.MagicMock(MockEstimator()),)
        ])

        X = [[1, 1, 1, 1, 1],
             [2, 2, 2, 2, 2],
             [3, 3, 3, 3, 3]]

        y =  [1, 2, 3, 4, 5]

        pipeline.fit(X, y)
        for name, step in pipeline.named_steps.items():
            step.fit.assert_called_once_with(X, y)

        pipeline.transform(X)
        for name, step in pipeline.named_steps.items():
            if name == "e": continue
            step.transform.assert_called_once_with(X)

        pipeline.poof()
        for name, step in pipeline.named_steps.items():
            if name in {"a", "c", "e"}: continue
            step.poof.assert_called_once_with(outpath=None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 579f8c923ae459c52f05be90637fbb58222c1961
Time: 2017-05-21
Author: benjamin@bengfort.com
File Name: tests/test_pipeline.py
Class Name: VisualPipelineTests
Method Name: test_fit_transform_poof_and_draw_calls


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 1ef1c68001e5117664acdb2a5156f3991e80cbcf
Time: 2017-03-24
Author: benjamin@bengfort.com
File Name: tests/test_cluster/test_elbow.py
Class Name: KElbowVisualizerTests
Method Name: test_integrated_elbow


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 1279fcc8d506bf4c1985d2e631ce4a534870c233
Time: 2017-03-24
Author: benjamin@bengfort.com
File Name: tests/test_cluster/test_elbow.py
Class Name: KElbowVisualizerTests
Method Name: test_integrated_elbow