Skip to content

Commit fa2eb31

Browse files
author
Marwan Mattar
authored
Develop package docs (#3551)
* Improvements to the main repo Readme: put an emphasis on the Releases section. * Improving the installation guide. * Added the first draft of package readme.
1 parent 89dc98c commit fa2eb31

11 files changed

+254
-188
lines changed

README.md

Lines changed: 62 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ train intelligent agents for 2D, 3D and VR/AR games. These trained agents can be
1919
used for multiple purposes, including controlling NPC behavior (in a variety of
2020
settings such as multi-agent and adversarial), automated testing of game builds
2121
and evaluating different game design decisions pre-release. The ML-Agents
22-
toolkit is mutually beneficial for both game developers and AI researchers as it
22+
Toolkit is mutually beneficial for both game developers and AI researchers as it
2323
provides a central platform where advances in AI can be evaluated on Unity’s
2424
rich environments and then made accessible to the wider research and game
2525
developer communities.
2626

2727
## Features
2828

2929
* Unity environment control from Python
30-
* 10+ sample Unity environments
30+
* 15+ sample Unity environments
3131
* Two deep reinforcement learning algorithms,
3232
[Proximal Policy Optimization](https://github.com/Unity-Technologies/ml-agents/tree/latest_release/docs/Training-PPO.md)
3333
(PPO) and [Soft Actor-Critic](https://github.com/Unity-Technologies/ml-agents/tree/latest_release/docs/Training-SAC.md)
@@ -39,33 +39,73 @@ developer communities.
3939
* Built-in support for Imitation Learning
4040
* Flexible agent control with On Demand Decision Making
4141
* Visualizing network outputs within the environment
42-
* Simplified set-up with Docker
4342
* Wrap learning environments as a gym
4443
* Utilizes the Unity Inference Engine
4544
* Train using concurrent Unity environment instances
4645

47-
## Documentation
46+
## Releases & Documentation
47+
**Our latest, stable release is 0.14.1. Click
48+
[here](https://github.com/Unity-Technologies/ml-agents/tree/latest_release/docs/Readme.md) to
49+
get started with the latest release of ML-Agents.**
50+
51+
The table below lists all our releases, including our `master` branch which is under active
52+
development and may be unstable. A few helpful guidelines:
53+
* The docs links in the table below include installation and usage instructions specific to each
54+
release. Remember to always use the documentation that corresponds to the release version you're
55+
using.
56+
* See the [GitHub releases](https://github.com/Unity-Technologies/ml-agents/releases) for more
57+
details of the changes between versions.
58+
* If you have used an earlier version of the ML-Agents Toolkit, we strongly recommend our
59+
[guide on migrating from earlier versions](docs/Migrating.md).
60+
61+
62+
| **Version** | **Release Date** | **Source** | **Documentation** | **Download** |
63+
|:-------:|:------:|:-------------:|:-------:|:------------:|
64+
| **master** (unstable) | -- | [source](https://github.com/Unity-Technologies/ml-agents/tree/master) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/master/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/master.zip) |
65+
| **0.14.1** (latest stable release) | February 26, 2020 | **[source](https://github.com/Unity-Technologies/ml-agents/tree/latest_release)** | **[docs](https://github.com/Unity-Technologies/ml-agents/tree/latest_release/docs/Readme.md)** | **[download](https://github.com/Unity-Technologies/ml-agents/archive/latest_release.zip)** |
66+
| **0.14.0** | February 13, 2020 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.14.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.14.0/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.14.0.zip) |
67+
| **0.13.1** | January 21, 2020 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.13.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.13.1/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.13.1.zip) |
68+
| **0.13.0** | January 8, 2020 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.13.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.13.0/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.13.0.zip) |
69+
| **0.12.1** | December 11, 2019 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.12.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.12.1/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.12.1.zip) |
70+
| **0.12.0** | December 2, 2019 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.12.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.12.0/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.12.0.zip) |
71+
| **0.11.0** | November 4, 2019 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.11.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.11.0/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.11.0.zip) |
72+
| **0.10.1** | October 9, 2019 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.10.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.10.1/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.10.1.zip) |
73+
| **0.10.0** | September 30, 2019 | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.10.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.10.0/docs/Readme.md) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.10.0.zip) |
74+
75+
76+
## Citation
77+
78+
If you are a researcher interested in a discussion of Unity as an AI platform, see a pre-print
79+
of our [reference paper on Unity and the ML-Agents Toolkit](https://arxiv.org/abs/1809.02627).
80+
81+
If you use Unity or the ML-Agents Toolkit to conduct research, we ask that you cite the following
82+
paper as a reference:
83+
84+
Juliani, A., Berges, V., Vckay, E., Gao, Y., Henry, H., Mattar, M., Lange, D. (2018). Unity: A General Platform for Intelligent Agents. *arXiv preprint arXiv:1809.02627.* https://github.com/Unity-Technologies/ml-agents.
4885

49-
* For more information, in addition to installation and usage instructions, see
50-
the [documentation for the latest release](https://github.com/Unity-Technologies/ml-agents/tree/latest_release/docs/Readme.md).
51-
* If you are a researcher interested in a discussion of Unity as an AI platform, see a pre-print of our [reference paper on Unity and the ML-Agents Toolkit](https://arxiv.org/abs/1809.02627). Also, see below for instructions on citing this paper.
52-
* If you have used an earlier version of the ML-Agents toolkit, we strongly
53-
recommend our [guide on migrating from earlier versions](docs/Migrating.md).
5486

5587
## Additional Resources
5688

5789
We have published a series of blog posts that are relevant for ML-Agents:
58-
90+
* (February 28, 2020) [Training intelligent adversaries using self-play with ML-Agents](https://blogs.unity3d.com/2020/02/28/training-intelligent-adversaries-using-self-play-with-ml-agents/)
91+
* (November 11, 2019) [Training your agents 7 times faster with ML-Agents](https://blogs.unity3d.com/2019/11/11/training-your-agents-7-times-faster-with-ml-agents/)
92+
* (October 21, 2019) [The AI@Unity interns help shape the world](https://blogs.unity3d.com/2019/10/21/the-aiunity-interns-help-shape-the-world/)
93+
* (April 15, 2019) [Unity ML-Agents Toolkit v0.8: Faster training on real games](https://blogs.unity3d.com/2019/04/15/unity-ml-agents-toolkit-v0-8-faster-training-on-real-games/)
94+
* (March 1, 2019) [Unity ML-Agents Toolkit v0.7: A leap towards cross-platform inference](https://blogs.unity3d.com/2019/03/01/unity-ml-agents-toolkit-v0-7-a-leap-towards-cross-platform-inference/)
95+
* (December 17, 2018) [ML-Agents Toolkit v0.6: Improved usability of Brains and Imitation Learning](https://blogs.unity3d.com/2018/12/17/ml-agents-toolkit-v0-6-improved-usability-of-brains-and-imitation-learning/)
96+
* (October 2, 2018) [Puppo, The Corgi: Cuteness Overload with the Unity ML-Agents Toolkit](https://blogs.unity3d.com/2018/10/02/puppo-the-corgi-cuteness-overload-with-the-unity-ml-agents-toolkit/)
97+
* (September 11, 2018) [ML-Agents Toolkit v0.5, new resources for AI researchers available now](https://blogs.unity3d.com/2018/09/11/ml-agents-toolkit-v0-5-new-resources-for-ai-researchers-available-now/)
98+
* (June 26, 2018) [Solving sparse-reward tasks with Curiosity](https://blogs.unity3d.com/2018/06/26/solving-sparse-reward-tasks-with-curiosity/)
99+
* (June 19, 2018) [Unity ML-Agents Toolkit v0.4 and Udacity Deep Reinforcement Learning Nanodegree](https://blogs.unity3d.com/2018/06/19/unity-ml-agents-toolkit-v0-4-and-udacity-deep-reinforcement-learning-nanodegree/)
100+
* (May 24, 2018) [Imitation Learning in Unity: The Workflow](https://blogs.unity3d.com/2018/05/24/imitation-learning-in-unity-the-workflow/)
101+
* (March 15, 2018) [ML-Agents Toolkit v0.3 Beta released: Imitation Learning, feedback-driven features, and more](https://blogs.unity3d.com/2018/03/15/ml-agents-v0-3-beta-released-imitation-learning-feedback-driven-features-and-more/)
102+
* (December 11, 2017) [Using Machine Learning Agents in a real game: a beginner’s guide](https://blogs.unity3d.com/2017/12/11/using-machine-learning-agents-in-a-real-game-a-beginners-guide/)
103+
* (December 8, 2017) [Introducing ML-Agents Toolkit v0.2: Curriculum Learning, new environments, and more](https://blogs.unity3d.com/2017/12/08/introducing-ml-agents-v0-2-curriculum-learning-new-environments-and-more/)
104+
* (September 19, 2017) [Introducing: Unity Machine Learning Agents Toolkit](https://blogs.unity3d.com/2017/09/19/introducing-unity-machine-learning-agents/)
59105
* Overviewing reinforcement learning concepts
60106
([multi-armed bandit](https://blogs.unity3d.com/2017/06/26/unity-ai-themed-blog-entries/)
61107
and
62108
[Q-learning](https://blogs.unity3d.com/2017/08/22/unity-ai-reinforcement-learning-with-q-learning/))
63-
* [Using Machine Learning Agents in a real game: a beginner’s guide](https://blogs.unity3d.com/2017/12/11/using-machine-learning-agents-in-a-real-game-a-beginners-guide/)
64-
* [Post](https://blogs.unity3d.com/2018/02/28/introducing-the-winners-of-the-first-ml-agents-challenge/)
65-
announcing the winners of our
66-
[first ML-Agents Challenge](https://connect.unity.com/challenges/ml-agents-1)
67-
* [Post](https://blogs.unity3d.com/2018/01/23/designing-safer-cities-through-simulations/)
68-
overviewing how Unity can be leveraged as a simulator to design safer cities.
69109

70110
In addition to our own documentation, here are some additional, relevant articles:
71111

@@ -75,50 +115,26 @@ In addition to our own documentation, here are some additional, relevant article
75115

76116
## Community and Feedback
77117

78-
The ML-Agents toolkit is an open-source project and we encourage and welcome
118+
The ML-Agents Toolkit is an open-source project and we encourage and welcome
79119
contributions. If you wish to contribute, be sure to review our
80120
[contribution guidelines](com.unity.ml-agents/CONTRIBUTING.md) and
81121
[code of conduct](CODE_OF_CONDUCT.md).
82122

83-
For problems with the installation and setup of the the ML-Agents toolkit, or
123+
For problems with the installation and setup of the the ML-Agents Toolkit, or
84124
discussions about how to best setup or train your agents, please create a new
85125
thread on the [Unity ML-Agents forum](https://forum.unity.com/forums/ml-agents.453/)
86126
and make sure to include as much detail as possible.
87-
If you run into any other problems using the ML-Agents toolkit, or have a specific
127+
If you run into any other problems using the ML-Agents Toolkit, or have a specific
88128
feature requests, please [submit a GitHub issue](https://github.com/Unity-Technologies/ml-agents/issues).
89129

90-
Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents Toolkit can we continue
91-
to improve and grow. Please take a few minutes to [let us know about it](https://github.com/Unity-Technologies/ml-agents/issues/1454).
130+
Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents
131+
Toolkit can we continue to improve and grow. Please take a few minutes to
132+
[let us know about it](https://github.com/Unity-Technologies/ml-agents/issues/1454).
92133

93134
For any other questions or feedback, connect directly with the ML-Agents
94135
team at ml-agents@unity3d.com.
95136

96-
## Releases
97-
The latest release is 0.14.1. Previous releases can be found below:
98-
99-
| **Version** | **Source** | **Documentation** | **Download** |
100-
|:-------:|:------:|:-------------:|:-------:|
101-
| **0.14.0** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.14.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.14.0/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.14.0.zip) |
102-
| **0.13.1** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.13.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.13.1/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.13.1.zip) |
103-
| **0.13.0** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.13.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.13.0/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.13.0.zip) |
104-
| **0.12.1** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.12.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.12.1/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.12.1.zip) |
105-
| **0.12.0** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.12.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.12.0/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.12.0.zip) |
106-
| **0.11.0** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.11.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.11.0/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.11.0.zip) |
107-
| **0.10.1** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.10.1) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.10.1/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.10.1.zip) |
108-
| **0.10.0** | [source](https://github.com/Unity-Technologies/ml-agents/tree/0.10.0) | [docs](https://github.com/Unity-Technologies/ml-agents/tree/0.10.0/docs) | [download](https://github.com/Unity-Technologies/ml-agents/archive/0.10.0.zip) |
109-
110-
See the [GitHub releases](https://github.com/Unity-Technologies/ml-agents/releases) for more details of the changes
111-
between versions.
112-
113-
Please note that the `master` branch is under active development, so the documentation there may differ from the code
114-
of a previous release. Always use the documentation that corresponds to the release version you're using.
115137

116138
## License
117139

118140
[Apache License 2.0](LICENSE)
119-
120-
## Citation
121-
122-
If you use Unity or the ML-Agents Toolkit to conduct research, we ask that you cite the following paper as a reference:
123-
124-
Juliani, A., Berges, V., Vckay, E., Gao, Y., Henry, H., Mattar, M., Lange, D. (2018). Unity: A General Platform for Intelligent Agents. *arXiv preprint arXiv:1809.02627.* https://github.com/Unity-Technologies/ml-agents.

com.unity.ml-agents/Documentation~/TableOfContents.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,92 @@
1-
Please see the [ML-Agents README)(https://github.com/Unity-Technologies/ml-agents/blob/master/README.md)
1+
# About ML-Agents package (`com.unity.ml-agents`)
2+
3+
The Unity ML-Agents package contains the C# SDK for the
4+
[Unity ML-Agents Toolkit](https://github.com/Unity-Technologies/ml-agents).
5+
6+
The package provides the ability for any Unity scene to be converted into a learning
7+
environment where character behaviors can be trained using a variety of machine learning
8+
algorithms. Additionally, it enables any trained behavior to be embedded back into the Unity
9+
scene. More specifically, the package provides the following core functionalities:
10+
* Define Agents: entities whose behavior will be learned. Agents are entities
11+
that generate observations (through sensors), take actions and receive rewards from
12+
the environment.
13+
* Define Behaviors: entities that specifiy how an agent should act. Multiple agents can
14+
share the same Behavior and a scene may have multiple Behaviors.
15+
* Record demonstrations of an agent within the Editor. These demonstrations can be
16+
valuable to train a behavior for that agent.
17+
* Embedding a trained behavior into the scene via the
18+
[Unity Inference Engine](https://docs.unity3d.com/Packages/com.unity.barracuda@latest/index.html).
19+
Thus an Agent can switch from a learning behavior to an inference behavior.
20+
21+
Note that this package does not contain the machine learning algorithms for training
22+
behaviors. It relies on a Python package to orchestrate the training. This package
23+
only enables instrumenting a Unity scene and setting it up for training, and then
24+
embedding the trained model back into your Unity scene.
25+
26+
## Preview package
27+
This package is available as a preview, so it is not ready for production use.
28+
The features and documentation in this package might change before it is verified for release.
29+
30+
31+
## Package contents
32+
33+
The following table describes the package folder structure:
34+
35+
|**Location**|**Description**|
36+
|---|---|
37+
|*Documentation~*|Contains the documentation for the Unity package.|
38+
|*Editor*|Contains utilities for Editor windows and drawers.|
39+
|*Plugins*|Contains third-party DLLs.|
40+
|*Runtime*|Contains core C# APIs for integrating ML-Agents into your Unity scene. |
41+
|*Tests*|Contains the unit tests for the package.|
42+
43+
<a name="Installation"></a>
44+
45+
## Installation
46+
47+
To install this package, follow the instructions in the
48+
[Package Manager documentation](https://docs.unity3d.com/Manual/upm-ui-install.html).
49+
50+
To install the Python package to enable training behaviors, follow the instructions on our
51+
[GitHub repository](https://github.com/Unity-Technologies/ml-agents/blob/latest_release/docs/Installation.md).
52+
53+
## Requirements
54+
55+
This version of the Unity ML-Agents package is compatible with the following versions of the Unity Editor:
56+
57+
* 2018.4 and later (recommended)
58+
59+
## Known limitations
60+
61+
### Headless Mode
62+
63+
If you enable Headless mode, you will not be able to collect visual observations
64+
from your agents.
65+
66+
### Rendering Speed and Synchronization
67+
68+
Currently the speed of the game physics can only be increased to 100x real-time.
69+
The Academy also moves in time with FixedUpdate() rather than Update(), so game
70+
behavior implemented in Update() may be out of sync with the agent decision
71+
making. See
72+
[Execution Order of Event Functions](https://docs.unity3d.com/Manual/ExecutionOrder.html)
73+
for more information.
74+
75+
You can control the frequency of Academy stepping by calling
76+
`Academy.Instance.DisableAutomaticStepping()`, and then calling
77+
`Academy.Instance.EnvironmentStep()`
78+
79+
### Unity Inference Engine Models
80+
Currently, only models created with our trainers are supported for running
81+
ML-Agents with a neural network behavior.
82+
83+
84+
## Helpful links
85+
86+
If you are new to the Unity ML-Agents package, or have a question after reading
87+
the documentation, you can checkout our
88+
[GitHUb Repository](https://github.com/Unity-Technologies/ml-agents), which
89+
also includes a number of ways to
90+
[connect with us](https://github.com/Unity-Technologies/ml-agents#community-and-feedback)
91+
including our [ML-Agents Forum](https://forum.unity.com/forums/ml-agents.453/).
92+

com.unity.ml-agents/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

com.unity.ml-agents/README.md.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)