浏览代码

Fix iteration over brains_to_curriculums.

/develop-generalizationTraining-TrainerController
Deric Pang 6 年前
当前提交
aaab8c50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      python/unitytrainers/meta_curriculum.py

2
python/unitytrainers/meta_curriculum.py


def lesson_nums(self):
"""A dict from brain name to the brain's curriculum's lesson number."""
lesson_nums = {}
for brain_name, curriculum in self.brains_to_curriculums:
for brain_name, curriculum in self.brains_to_curriculums.items():
lesson_nums[brain_name] = curriculum.lesson_num
return lesson_nums

正在加载...
取消
保存