6f16b37cfb8d1eaa3e81f0909c6eb3782eab43cc,tests/unit/test_methods.py,Mock_model,mock_summary,#Mock_model#Any#,15

Before Change


    def mock_summary(self, x):
        self.mock_sum_calls += 1
        m = np.mean(x, axis=1, keepdims=True)
        return np.atleast_1d(m)

    def mock_discrepancy(self, x, y):
        self.mock_dis_calls += 1
        d = np.linalg.norm(np.array(x) - np.array(y), axis=0, ord=1)

After Change


    def mock_summary(self, x):
        self.mock_sum_calls += 1
        m = np.mean(x, axis=1, keepdims=True)
        return m

    def mock_discrepancy(self, x, y):
        self.mock_dis_calls += 1
        d = np.linalg.norm(np.array(x) - np.array(y), axis=0, ord=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: elfi-dev/elfi
Commit Name: 6f16b37cfb8d1eaa3e81f0909c6eb3782eab43cc
Time: 2016-11-11
Author: henri.vuollekoski@helsinki.fi
File Name: tests/unit/test_methods.py
Class Name: Mock_model
Method Name: mock_summary


Project Name: elfi-dev/elfi
Commit Name: fbb7d113378242537d4d693171a013d81e276da4
Time: 2016-11-10
Author: antti.kangasraasio@hiit.fi
File Name: tests/unit/test_methods.py
Class Name: Test_BOLFI
Method Name: mock_discrepancy


Project Name: elfi-dev/elfi
Commit Name: 6f16b37cfb8d1eaa3e81f0909c6eb3782eab43cc
Time: 2016-11-11
Author: henri.vuollekoski@helsinki.fi
File Name: tests/unit/test_methods.py
Class Name: Mock_model
Method Name: mock_discrepancy


Project Name: elfi-dev/elfi
Commit Name: fbb7d113378242537d4d693171a013d81e276da4
Time: 2016-11-10
Author: antti.kangasraasio@hiit.fi
File Name: tests/unit/test_methods.py
Class Name: Test_BOLFI
Method Name: mock_summary