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

Before Change



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


def test_custom_objects_scope():

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: 5

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: ray-project/ray
Commit Name: b796de41049aa3b3696a6b7242799284c3f0c641
Time: 2021-01-20
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/util/metrics.py
Class Name: Metric
Method Name: record


Project Name: ray-project/ray
Commit Name: 428516056abe41f135133e732a8d44af6ce9a234
Time: 2020-04-15
Author: sven@anyscale.io
File Name: rllib/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: learn_on_batch