d657fbe414191d55b5e2b77baf3709d7caef3393,magenta/models/rl_tuner/rl_tuner_test.py,RLTunerTest,testTraining,#RLTunerTest#,75
Before Change
rlt = rl_tuner.RLTuner(self.output_dir, output_every_nth=30)
rlt.train(num_steps=31, exploration_period=3)
self.assertTrue(os.path.exists(rlt.save_path + "-30"))
self.assertTrue(len(rlt.rewards_batched) >= 1)
self.assertTrue(len(rlt.eval_avg_reward) >= 1)
def testCompositionStats(self):
After Change
output_every_nth=30)
rlt.train(num_steps=31, exploration_period=3)
checkpoint_dir = os.path.dirname(rlt.save_path)
checkpoint_files = [
f for f in os.listdir(checkpoint_dir)
if os.path.isfile(os.path.join(checkpoint_dir, f))]
checkpoint_step_30 = [
f for f in checkpoint_files
if os.path.basename(rlt.save_path) + "-30" in f]
self.assertTrue(len(checkpoint_step_30))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: tensorflow/magenta
Commit Name: d657fbe414191d55b5e2b77baf3709d7caef3393
Time: 2016-11-09
Author: curtis@thefjord.org
File Name: magenta/models/rl_tuner/rl_tuner_test.py
Class Name: RLTunerTest
Method Name: testTraining
Project Name: hyperopt/hyperopt
Commit Name: ce64bd456f4658b2e407e15030d2015ea0190b29
Time: 2020-04-17
Author: liang.zhang@databricks.com
File Name: hyperopt/tests/test_spark.py
Class Name: FMinTestCase
Method Name: test_no_retry_for_long_tasks
Project Name: reinforceio/tensorforce
Commit Name: cd50ec1c075fed30b19771879b818ba14ecfb816
Time: 2020-07-05
Author: alexkuhnle@t-online.de
File Name: test/test_features.py
Class Name: TestFeatures
Method Name: test_pretrain