fab8d83aa1d19d5e40383323a60666a886804c54,batchflow/tests/rebatch_test.py,,test_rebatch,#Any#Any#,18

Before Change


def test_rebatch(batch_size, rebatch_size):
    dataset_size = 60
    batch_shape = (dataset_size, 10)
    data = np.random.random(batch_shape)

    dataset = Dataset(index=dataset_size,
                      batch_class=MyBatch,
                      preloaded=data)

After Change


@pytest.mark.parametrize("batch_size, rebatch_size", PARAMETERS)
def test_rebatch(batch_size, rebatch_size):

    data = np.vstack([np.array([i, i]) for i in range(DATASET_SIZE)])
    dataset = Dataset(index=DATASET_SIZE,
                      batch_class=MyBatch,
                      preloaded=data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: analysiscenter/batchflow
Commit Name: fab8d83aa1d19d5e40383323a60666a886804c54
Time: 2019-08-16
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/tests/rebatch_test.py
Class Name:
Method Name: test_rebatch


Project Name: pymc-devs/pymc3
Commit Name: e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e
Time: 2019-02-16
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/distributions/mixture.py
Class Name: Mixture
Method Name: comp_dists


Project Name: biolab/orange3
Commit Name: ac892eddd865681c9746efeda9f1f094f26cc32f
Time: 2012-11-29
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/filter.py
Class Name: Filter_Random
Method Name: __call__