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
0480a0d8
Commit
0480a0d8
authored
Sep 17, 2019
by
Susumu OTA
Browse files
fix curriculum order
parent
2d5155da
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/animalai_train/animalai_train/trainers/curriculum.py
View file @
0480a0d8
...
...
@@ -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