555ca942df407b8c1bf1d48383c60fa1bf09cc1d,tests/keras/engine/test_training.py,,,#,1980

Before Change


    assert np.isclose(history.history["val_metric_1"][-1], 5, 0)


if __name__ == "__main__":
    pytest.main([__file__])

After Change


from keras.utils import Sequence
from keras.callbacks import Callback

if K.backend() == "tensorflow":
    import tensorflow as tf


class RandomSequence(Sequence):
    def __init__(self, batch_size, sequence_length=12):
        self.batch_size = batch_size
        self.sequence_length = sequence_length
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: keras-team/keras
Commit Name: 555ca942df407b8c1bf1d48383c60fa1bf09cc1d
Time: 2019-08-28
Author: francois.chollet@gmail.com
File Name: tests/keras/engine/test_training.py
Class Name:
Method Name:


Project Name: deepfakes/faceswap
Commit Name: 27c8db43d1c6257b340f1545d6845639ccee2526
Time: 2019-04-09
Author: 44308116+kilroythethird@users.noreply.github.com
File Name: lib/model/layers.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: 8f41e41eda6e8ea96403cae5798a5a89c8bb5605
Time: 2018-12-20
Author: frederic.branchaud-charron@usherbrooke.ca
File Name: tests/test_multiprocessing.py
Class Name:
Method Name: