Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ozan Catal
Animal Ai Env
Commits
9903d3b1
Unverified
Commit
9903d3b1
authored
Sep 16, 2019
by
Benjamin Beyret
Committed by
GitHub
Sep 16, 2019
Browse files
Merge pull request #71 from susumuota/fix-curriculum-order
fix curriculum order
parents
2d5155da
0480a0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/animalai_train/animalai_train/trainers/curriculum.py
View file @
9903d3b1
...
...
@@ -63,7 +63,7 @@ class Curriculum(object):
raise
Curriculum
(
'One or more configuration file(s) in curriculum {0} could not be found'
.
format
(
location
)
)
self
.
configurations
=
[
ArenaConfig
(
os
.
path
.
join
(
folder
,
file
))
for
file
in
yaml
_files
]
self
.
configurations
=
[
ArenaConfig
(
os
.
path
.
join
(
folder
,
file
))
for
file
in
configuration
_files
]
@
property
def
lesson_num
(
self
):
...
...
@@ -92,9 +92,10 @@ class Curriculum(object):
# parameters = self.data['parameters']
# for key in parameters:
# config[key] = parameters[key][self.lesson_num]
logger
.
info
(
'{0} lesson changed. Now in lesson {1}'
logger
.
info
(
'{0} lesson changed. Now in lesson {1}
: {2}
'
.
format
(
self
.
_brain_name
,
self
.
lesson_num
))
self
.
lesson_num
,
self
.
data
[
'configuration_files'
][
self
.
lesson_num
]))
return
True
return
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment