d9f1874e3489edc915228dcfdae64d5294034464,rllib/tests/test_rollout_worker.py,TestRolloutWorker,test_global_vars_update,#TestRolloutWorker#,187
Before Change
self.assertGreater(
result["info"]["learner"]["default_policy"]["cur_lr"],
0.01)
if result["info"]["learner"]["default_policy"]["cur_lr"] < \
0.07:
break
self.assertLess(
result["info"]["learner"]["default_policy"]["cur_lr"], 0.07)
agent.stop()
After Change
def test_global_vars_update(self):
// Allow for Unittest run.
ray.init(num_cpus=5, ignore_reinit_error=True)
for fw in framework_iterator(frameworks=("tf2", "tf")):
agent = A2CTrainer(
env="CartPole-v0",
config={
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: ray-project/ray
Commit Name: d9f1874e3489edc915228dcfdae64d5294034464
Time: 2020-10-27
Author: sven@anyscale.io
File Name: rllib/tests/test_rollout_worker.py
Class Name: TestRolloutWorker
Method Name: test_global_vars_update
Project Name: asyml/texar
Commit Name: 2546dbadb426502d169aed5beb5933255b6f2208
Time: 2017-12-02
Author: zichaoy@cs.cmu.edu
File Name: examples/tsf/utils.py
Class Name:
Method Name: get_batches
Project Name: OpenNMT/OpenNMT-py
Commit Name: 63871d5ab3301d015805abddd8f4259680d6a24a
Time: 2017-09-21
Author: bpeters@coli.uni-saarland.de
File Name: translate.py
Class Name:
Method Name: main
Project Name: Hironsan/anago
Commit Name: c99112162665aaf2667d1810d57982d0681f18e5
Time: 2018-03-06
Author: hiroki.nakayama.py@gmail.com
File Name: anago/callbacks.py
Class Name: F1score
Method Name: on_epoch_end