f18c55e373aeddcecd3f1af90347d9a418d964f5,sonnet/src/optimizers/rmsprop_test.py,,,#,177

Before Change


    return optimizer_tests.WrappedTFOptimizer(tf.optimizers.RMSprop(**kwargs))


if __name__ == "__main__":
  // tf.enable_v2_behavior()
  tf.test.main()

After Change


from sonnet.src.optimizers import rmsprop
import tensorflow as tf

CONFIGS = optimizer_tests.named_product(learning_rate=(0.01, 0.001),
                                        decay=(0.8, 0.9),
                                        momentum=(0.0, 0.5),
                                        epsilon=(1e-7, 1e-8),
                                        centered=(False, True),
                                        seed=(28, 2, 90))


class ComparisonTest(optimizer_tests.AbstractFuzzTest):
  Ensures Sonnet optimizers have equivalent behavior to TensorFlow.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: deepmind/sonnet
Commit Name: f18c55e373aeddcecd3f1af90347d9a418d964f5
Time: 2020-01-27
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/rmsprop_test.py
Class Name:
Method Name:


Project Name: deepmind/sonnet
Commit Name: a31c623cb6c537dd10043d65e0bb39a00b89356d
Time: 2019-10-24
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/momentum_test.py
Class Name:
Method Name:


Project Name: deepmind/sonnet
Commit Name: f18c55e373aeddcecd3f1af90347d9a418d964f5
Time: 2020-01-27
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/adam_test.py
Class Name:
Method Name: