Пример #1
0
 def testIntegrationRainbow(self):
   """Test the rainbow agent."""
   tf.logging.info('####### Training the Rainbow agent #####')
   tf.logging.info('####### Rainbow base_dir: {}'.format(FLAGS.base_dir))
   self.quickRainbowFlags()
   train.main([])
   self.verifyFilesCreated(FLAGS.base_dir)
   shutil.rmtree(FLAGS.base_dir)
Пример #2
0
 def testIntegrationDqn(self):
   """Test the DQN agent."""
   tf.logging.info('####### Training the DQN agent #####')
   tf.logging.info('####### DQN base_dir: {}'.format(FLAGS.base_dir))
   self.quickDqnFlags()
   train.main([])
   self.verifyFilesCreated(FLAGS.base_dir)
   shutil.rmtree(FLAGS.base_dir)
Пример #3
0
 def test_atari_init(self):
     """Tests that a DQN agent is initialized."""
     train.main([])
     shutil.rmtree(FLAGS.base_dir)