c3e844e7063efc14f6a8364cc04df4526b57352e,tests/keras/utils/generic_utils_test.py,,test_progbar,#,16

Before Change


@keras_test
def test_progbar():
    n = 2
    input_arr = np.random.random((n, n, n))

    bar = Progbar(n)
    for i, arr in enumerate(input_arr):
        bar.update(i, list(arr))

    bar = Progbar(None)
    for i, arr in enumerate(input_arr):
        bar.update(i, list(arr))

After Change



@keras_test
def test_progbar():
    values_s = [None,
                [["key1", 1], ["key2", 1e-4]],
                [["key3", 1], ["key2", 1e-4]]]

    for target in (len(values_s) - 1, None):
        for verbose in (0, 1, 2):
            bar = Progbar(target, width=30, verbose=verbose, interval=0.05)
            for force in (False, True):
                for current, values in enumerate(values_s):
                    bar.update(current, values=values, force=force)


def test_custom_objects_scope():

    def custom_fn():
        pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: c3e844e7063efc14f6a8364cc04df4526b57352e
Time: 2018-01-11
Author: ozabluda@gmail.com
File Name: tests/keras/utils/generic_utils_test.py
Class Name:
Method Name: test_progbar


Project Name: OpenNMT/OpenNMT-py
Commit Name: 9107c93764e8af783f08b4c8cb2252cd48dc8f32
Time: 2017-09-02
Author: bpeters@coli.uni-saarland.de
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: __init__


Project Name: NifTK/NiftyNet
Commit Name: fd8ca0c975e380dfcd7239408258b5852be33f06
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_grid.py
Class Name: GridSampler
Method Name: layer_op