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
53fda1fe
Commit
53fda1fe
authored
Sep 13, 2019
by
Benjamin Beyret
Browse files
add documentation curriculum
parent
639d67e6
Changes
11
Hide whitespace changes
Inline
Side-by-side
animalai/setup.py
View file @
53fda1fe
...
...
@@ -2,7 +2,7 @@ from setuptools import setup
setup
(
name
=
'animalai'
,
version
=
'1.
0.5
'
,
version
=
'1.
1.0
'
,
description
=
'Animal AI competition interface'
,
url
=
'https://github.com/beyretb/AnimalAI-Olympics'
,
author
=
'Benjamin Beyret'
,
...
...
documentation/Curriculum/0.png
0 → 100644
View file @
53fda1fe
350 KB
documentation/Curriculum/1.png
0 → 100644
View file @
53fda1fe
343 KB
documentation/Curriculum/2.png
0 → 100644
View file @
53fda1fe
340 KB
documentation/Curriculum/3.png
0 → 100644
View file @
53fda1fe
338 KB
documentation/Curriculum/4.png
0 → 100644
View file @
53fda1fe
338 KB
documentation/Curriculum/5.png
0 → 100644
View file @
53fda1fe
336 KB
documentation/Curriculum/learning.png
0 → 100644
View file @
53fda1fe
101 KB
documentation/Curriculum/lessons.png
0 → 100644
View file @
53fda1fe
19.5 KB
documentation/curriculum.md
View file @
53fda1fe
...
...
@@ -20,7 +20,17 @@ a meta-curriculum.
## Example
An example is provided in
[
the example folder
](
../examples/configs/curriculum
)
. The
`json`
file contains:
An example is provided in
[
the example folder
](
../examples/configs/curriculum
)
. The idea of this curriculum is to train
an agent to navigate a maze by creating maze like structures of perpendicular walls, starting with a single wall and food,
adding one more wall at each level. Below are samples from the 6 different levels.
:--------------------:|:-------------------:|:-------------------:

|!
[](
Curriculum/1.png
)
|!
[](
Curriculum/2.png
)
|
:--------------------:|:-------------------:|:-------------------:

|!
[](
Curriculum/4.png
)
|!
[](
Curriculum/5.png
)
|
To produce such a curriculum, we define the meta-curriculum as the following
`json`
file:
```
{
...
...
@@ -71,9 +81,15 @@ except for the `configuration_files`. From the ml-agents documentation:
The
`configuration_files`
parameter is simply a list of files names which contain the lessons in the order they should be loaded.
Note that if you have
`n`
lessons, you need to define
`n-1`
thresholds.
## Training
Once the folder created, training is done in the same way as before but now we pass a
`MetaCurriculum`
object to the
`meta_curriculum`
argument of a
`TrainerController`
.
We provide an example using the above curriculum in
[
examples/trainCurriculum.py
](
../examples/trainCurriculum.py
)
.
Training this agent, you can see the lessons switch using tensorboard:
!
[](
Curriculum/learning.png
)
!
[](
Curriculum/lessons.png
)
examples/animalai_train/setup.py
View file @
53fda1fe
...
...
@@ -2,7 +2,7 @@ from setuptools import setup
setup
(
name
=
'animalai_train'
,
version
=
'1.
0.5
'
,
version
=
'1.
1.0
'
,
description
=
'Animal AI competition training library'
,
url
=
'https://github.com/beyretb/AnimalAI-Olympics'
,
author
=
'Benjamin Beyret'
,
...
...
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