315577500118d62e4ef5553be0e6d3c88b0578d3,inferno/tests/test_callbacks.py,TestScoring,test_pred_extractor_is_called,#TestScoring#Any#Any#Any#,228

Before Change


        // note: the history fixture is required even if not used because it
        // triggers the calls on mse_scoring
        call_args_list = mse_scoring.pred_extractor.call_args_list
        for (x, _), call_args in zip(data, call_args_list):
            assert x == call_args[0][0]


class TestPrintLog:
    @pytest.fixture
    def print_log_cls(self):
        from inferno.callbacks import PrintLog

After Change


        // note: the history fixture is required even if not used because it
        // triggers the calls on mse_scoring
        call_args_list = mse_scoring.target_extractor.call_args_list
        for i in range(3):  // 3 epochs
            data = mock_data[i][0]  // the predictions
            for j in range(4):  // 4 batches
                call_args_list[4 * i + j] == data

    def test_is_best_ignored_when_none(self, scoring_cls, net, mock_data):
        mse_scoring = scoring_cls(
            name="mse",
            scoring="mean_squared_error",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: dnouri/skorch
Commit Name: 315577500118d62e4ef5553be0e6d3c88b0578d3
Time: 2017-08-21
Author: benjamin.bossan@ottogroup.com
File Name: inferno/tests/test_callbacks.py
Class Name: TestScoring
Method Name: test_pred_extractor_is_called


Project Name: stanford-mast/nn_dataflow
Commit Name: b9605098d17802f7feb4616dabc3c82aa670ee18
Time: 2017-07-10
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: _set_fetch


Project Name: dnouri/skorch
Commit Name: 315577500118d62e4ef5553be0e6d3c88b0578d3
Time: 2017-08-21
Author: benjamin.bossan@ottogroup.com
File Name: inferno/tests/test_callbacks.py
Class Name: TestScoring
Method Name: test_target_extractor_is_called