浏览代码

Removing print statements.

/develop-generalizationTraining-TrainerController
Deric Pang 7 年前
当前提交
ae944381
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 3
      python/unitytrainers/ppo/trainer.py

3
python/unitytrainers/ppo/trainer.py


n_sequences = max(int(self.trainer_parameters['batch_size'] / self.sequence_length), 1)
value_total, policy_total, forward_total, inverse_total = [], [], [], []
advantages = self.training_buffer.update_buffer['advantages'].get_batch()
print('advantages:', advantages)
print('advantages mean:', advantages.mean())
print('advantages std:', advantages.std())
self.training_buffer.update_buffer['advantages'].set(
(advantages - advantages.mean()) / (advantages.std() + 1e-10))
num_epoch = self.trainer_parameters['num_epoch']

正在加载...
取消
保存