6fc1a9f5d2c9f57f22b17308bffe9dfe50c2c29f,batchflow/tests/datasetindex_test.py,,test_next_batch_stopiter_pass,#Any#,130

Before Change


    dsi = index("small")
    dsi.reset_iter()
    dsi.next_batch(2, n_epochs=None)
    dsi.next_batch(2, n_epochs=None)

def test_next_batch_stopiter_raise(index):
     Iteration is blocked after end of DatasetIndex. 
    dsi = index("small")

After Change


    left = set()
    right = set(dsi.index)
    for _ in range(SIZE**2):
        n_b = dsi.next_batch(1, n_epochs=None)
        left = left | set(n_b.index)
    assert left == right

def test_next_batch_drop_last_false_1(all_indices):
     When "drop_last" is False "next_batch" should cycle through index. 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: analysiscenter/batchflow
Commit Name: 6fc1a9f5d2c9f57f22b17308bffe9dfe50c2c29f
Time: 2019-02-14
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/tests/datasetindex_test.py
Class Name:
Method Name: test_next_batch_stopiter_pass


Project Name: analysiscenter/batchflow
Commit Name: ca6e79c30ec75c0cfe0d8731a4e13637e8be513c
Time: 2018-07-30
Author: a.kozhevin@analysiscenter.ru
File Name: dataset/research/research.py
Class Name: ExecutableUnit
Method Name: next_batch


Project Name: analysiscenter/batchflow
Commit Name: f2fe2fded2d88665a0e414f707d6ede551801396
Time: 2018-05-14
Author: a.kozhevin@analysiscenter.ru
File Name: dataset/research/research.py
Class Name: ExecutableUnit
Method Name: next_batch_root