665b0076e089dbe60ecadc34bf2cbff9d7042482,tests/keras/optimizers_test.py,,test_nadam,#,144

Before Change




def test_nadam():
    nadam = optimizers.Nadam()
    _test_optimizer(nadam)
    new_nadam = optimizers.Nadam(learning_rate=0.1, epsilon=0.01, schedule_decay=0.1)
    _test_optimizer(new_nadam)
    // test backward compatibility for adding opt.m_schedule.
    assert len(nadam.get_weights()) == len(new_nadam.get_weights())
    weights = nadam.get_weights()
    new_nadam.set_weights([weights[0]] + weights[1:])
    _test_optimizer(new_nadam)


def test_adam_amsgrad():
    _test_optimizer(optimizers.Adam(amsgrad=True))

After Change




def test_nadam():
    _test_optimizer(optimizers.Nadam())


def test_adam_amsgrad():
    _test_optimizer(optimizers.Adam(amsgrad=True))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: keras-team/keras
Commit Name: 665b0076e089dbe60ecadc34bf2cbff9d7042482
Time: 2019-05-28
Author: francois.chollet@gmail.com
File Name: tests/keras/optimizers_test.py
Class Name:
Method Name: test_nadam


Project Name: keras-team/keras
Commit Name: 665b0076e089dbe60ecadc34bf2cbff9d7042482
Time: 2019-05-28
Author: francois.chollet@gmail.com
File Name: tests/keras/optimizers_test.py
Class Name:
Method Name: test_adam


Project Name: keras-team/keras
Commit Name: 08f6bdeb5652550f36210f64aefda3d0d41e2d79
Time: 2019-05-28
Author: tanzheny@google.com
File Name: tests/keras/optimizers_test.py
Class Name:
Method Name: test_nadam


Project Name: keras-team/keras
Commit Name: 08f6bdeb5652550f36210f64aefda3d0d41e2d79
Time: 2019-05-28
Author: tanzheny@google.com
File Name: tests/keras/optimizers_test.py
Class Name:
Method Name: test_adam


Project Name: keras-team/keras
Commit Name: 665b0076e089dbe60ecadc34bf2cbff9d7042482
Time: 2019-05-28
Author: francois.chollet@gmail.com
File Name: tests/keras/optimizers_test.py
Class Name:
Method Name: test_nadam