Skip to content

Commit d37bfb6

Browse files
authored
Merge pull request #908 from Unity-Technologies/hotfix-0
Release v0.4.0a
2 parents 20569f9 + 168b8e2 commit d37bfb6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+455
-401
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contribution Guidelines
22

3-
Thank you for your interest in contributing to ML-Agents! We are incredibly
4-
excited to see how members of our community will use and extend ML-Agents.
3+
Thank you for your interest in contributing to the ML-Agents toolkit! We are incredibly
4+
excited to see how members of our community will use and extend the ML-Agents toolkit.
55
To facilitate your contributions, we've outlined a brief set of guidelines
66
to ensure that your extensions can be easily integrated.
77

@@ -11,7 +11,7 @@ First, please read through our [code of conduct](CODE_OF_CONDUCT.md),
1111
as we expect all our contributors to follow it.
1212

1313
Second, before starting on a project that you intend to contribute
14-
to ML-Agents (whether environments or modifications to the codebase),
14+
to the ML-Agents toolkit (whether environments or modifications to the codebase),
1515
we **strongly** recommend posting on our
1616
[Issues page](https://github.com/Unity-Technologies/ml-agents/issues) and
1717
briefly outlining the changes you plan to make. This will enable us to provide

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<img src="docs/images/unity-wide.png" align="middle" width="3000"/>
22

3-
# Unity ML-Agents (Beta)
3+
# Unity ML-Agents Toolkit (Beta)
44

5-
**Unity Machine Learning Agents** (ML-Agents) is an open-source Unity plugin
5+
**The Unity Machine Learning Agents Toolkit** (ML-Agents) is an open-source Unity plugin
66
that enables games and simulations to serve as environments for training
77
intelligent agents. Agents can be trained using reinforcement learning,
88
imitation learning, neuroevolution, or other machine learning methods through
@@ -12,7 +12,7 @@ and hobbyists to easily train intelligent agents for 2D, 3D and VR/AR games.
1212
These trained agents can be used for multiple purposes, including
1313
controlling NPC behavior (in a variety of settings such as multi-agent and
1414
adversarial), automated testing of game builds and evaluating different game
15-
design decisions pre-release. ML-Agents is mutually beneficial for both game
15+
design decisions pre-release. The ML-Agents toolkit is mutually beneficial for both game
1616
developers and AI researchers as it provides a central platform where advances
1717
in AI can be evaluated on Unity’s rich environments and then made accessible
1818
to the wider research and game developer communities.
@@ -34,7 +34,7 @@ to the wider research and game developer communities.
3434
* For more information, in addition to installation and usage
3535
instructions, see our [documentation home](docs/Readme.md).
3636
* If you have
37-
used a version of ML-Agents prior to v0.4, we strongly recommend
37+
used a version of the ML-Agents toolkit prior to v0.4, we strongly recommend
3838
our [guide on migrating from earlier versions](docs/Migrating.md).
3939

4040
## References
@@ -56,7 +56,7 @@ In addition to our own documentation, here are some additional, relevant article
5656

5757
## Community and Feedback
5858

59-
ML-Agents is an open-source project and we encourage and welcome contributions.
59+
The ML-Agents toolkit is an open-source project and we encourage and welcome contributions.
6060
If you wish to contribute, be sure to review our
6161
[contribution guidelines](CONTRIBUTING.md) and
6262
[code of conduct](CODE_OF_CONDUCT.md).
@@ -65,10 +65,10 @@ You can connect with us and the broader community
6565
through Unity Connect and GitHub:
6666
* Join our
6767
[Unity Machine Learning Channel](https://connect.unity.com/messages/c/035fba4f88400000)
68-
to connect with others using ML-Agents and Unity developers enthusiastic
68+
to connect with others using the ML-Agents toolkit and Unity developers enthusiastic
6969
about machine learning. We use that channel to surface updates
70-
regarding ML-Agents (and, more broadly, machine learning in games).
71-
* If you run into any problems using ML-Agents,
70+
regarding the ML-Agents toolkit (and, more broadly, machine learning in games).
71+
* If you run into any problems using the ML-Agents toolkit,
7272
[submit an issue](https://github.com/Unity-Technologies/ml-agents/issues) and
7373
make sure to include as much detail as possible.
7474

@@ -77,7 +77,7 @@ team at [email protected].
7777

7878
## Translations
7979

80-
To make Unity ML-Agents accessible to the global research and
80+
To make the Unity ML-Agents toolkit accessible to the global research and
8181
Unity developer communities, we're attempting to create and maintain
8282
translations of our documentation. We've started with translating a subset
8383
of the documentation to one language (Chinese), but we hope to continue

docs/API-Reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the following command within the `docs/` directory:
1111

1212
doxygen dox-ml-agents.conf
1313

14-
`dox-ml-agents.conf` is a Doxygen configuration file for ML-Agents
14+
`dox-ml-agents.conf` is a Doxygen configuration file for the ML-Agents toolkit
1515
that includes the classes that have been properly formatted.
1616
The generated HTML files will be placed
1717
in the `html/` subdirectory. Open `index.html` within that subdirectory to

docs/Background-Machine-Learning.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Background: Machine Learning
22

3-
Given that a number of users of ML-Agents might not have a formal machine
3+
Given that a number of users of the ML-Agents toolkit might not have a formal machine
44
learning background, this page provides an overview to facilitate the
5-
understanding of ML-Agents. However, We will not attempt to provide a thorough
5+
understanding of the ML-Agents toolkit. However, We will not attempt to provide a thorough
66
treatment of machine learning as there are fantastic resources online.
77

88
Machine learning, a branch of artificial intelligence, focuses on learning
@@ -77,7 +77,7 @@ tasks are active areas of machine learning research and, in practice, require
7777
several iterations to achieve good performance.
7878

7979
We now switch to reinforcement learning, the third class of
80-
machine learning algorithms, and arguably the one most relevant for ML-Agents.
80+
machine learning algorithms, and arguably the one most relevant for the ML-Agents toolkit.
8181

8282
## Reinforcement Learning
8383

@@ -132,8 +132,8 @@ in many ways, one can view a non-playable character (NPC) as a virtual
132132
robot, with its own observations about the environment, its own set of actions
133133
and a specific objective. Thus it is natural to explore how we can
134134
train behaviors within Unity using reinforcement learning. This is precisely
135-
what ML-Agents offers. The video linked below includes a reinforcement
136-
learning demo showcasing training character behaviors using ML-Agents.
135+
what the ML-Agents toolkit offers. The video linked below includes a reinforcement
136+
learning demo showcasing training character behaviors using the ML-Agents toolkit.
137137

138138
<p align="center">
139139
<a href="http://www.youtube.com/watch?feature=player_embedded&v=fiQsmdwEGT8" target="_blank">

docs/Background-TensorFlow.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
As discussed in our
44
[machine learning background page](Background-Machine-Learning.md), many of the
5-
algorithms we provide in ML-Agents leverage some form of deep learning.
5+
algorithms we provide in the ML-Agents toolkit leverage some form of deep learning.
66
More specifically, our implementations are built on top of the open-source
77
library [TensorFlow](https://www.tensorflow.org/). This means that the models
8-
produced by ML-Agents are (currently) in a format only understood by
8+
produced by the ML-Agents toolkit are (currently) in a format only understood by
99
TensorFlow. In this page we provide a brief overview of TensorFlow, in addition
10-
to TensorFlow-related tools that we leverage within ML-Agents.
10+
to TensorFlow-related tools that we leverage within the ML-Agents toolkit.
1111

1212
## TensorFlow
1313

1414
[TensorFlow](https://www.tensorflow.org/) is an open source library for
1515
performing computations using data flow graphs, the underlying representation
1616
of deep learning models. It facilitates training and inference on CPUs and
17-
GPUs in a desktop, server, or mobile device. Within ML-Agents, when you
17+
GPUs in a desktop, server, or mobile device. Within the ML-Agents toolkit, when you
1818
train the behavior of an Agent, the output is a TensorFlow model (.bytes)
1919
file that you can then embed within an Internal Brain. Unless you implement
2020
a new algorithm, the use of TensorFlow is mostly abstracted away and behind
@@ -47,5 +47,5 @@ that contains an Internal Brain is built, inference is performed via
4747
TensorFlowSharp. We provide an additional in-depth overview of how to
4848
leverage [TensorFlowSharp within Unity](Using-TensorFlow-Sharp-in-Unity.md)
4949
which will become more relevant once you install and start training
50-
behaviors within ML-Agents. Given the reliance on TensorFlowSharp, the
50+
behaviors within the ML-Agents toolkit. Given the reliance on TensorFlowSharp, the
5151
Internal Brain is currently marked as experimental.

docs/Background-Unity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ we highly recommend the
66
[Tutorials page](https://unity3d.com/learn/tutorials). The
77
[Roll-a-ball tutorial](https://unity3d.com/learn/tutorials/s/roll-ball-tutorial)
88
is a fantastic resource to learn all the basic concepts of Unity to get started
9-
with ML-Agents:
9+
with the ML-Agents toolkit:
1010
* [Editor](https://docs.unity3d.com/Manual/UsingTheEditor.html)
1111
* [Interface](https://docs.unity3d.com/Manual/LearningtheInterface.html)
1212
* [Scene](https://docs.unity3d.com/Manual/CreatingScenes.html)

docs/Basic-Guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ This guide will show you how to use a pretrained model in an example Unity envir
55
If you are not familiar with the [Unity Engine](https://unity3d.com/unity),
66
we highly recommend the [Roll-a-ball tutorial](https://unity3d.com/learn/tutorials/s/roll-ball-tutorial) to learn all the basic concepts of Unity.
77

8-
## Setting up ML-Agents within Unity
8+
## Setting up the ML-Agents Toolkit within Unity
99

10-
In order to use ML-Agents within Unity, you need to change some Unity settings first. Also [TensorFlowSharp plugin](https://s3.amazonaws.com/unity-ml-agents/0.4/TFSharpPlugin.unitypackage) is needed for you to use pretrained model within Unity, which is based on the [TensorFlowSharp repo](https://github.com/migueldeicaza/TensorFlowSharp).
10+
In order to use the ML-Agents toolkit within Unity, you need to change some Unity settings first. Also [TensorFlowSharp plugin](https://s3.amazonaws.com/unity-ml-agents/0.4/TFSharpPlugin.unitypackage) is needed for you to use pretrained model within Unity, which is based on the [TensorFlowSharp repo](https://github.com/migueldeicaza/TensorFlowSharp).
1111

1212
1. Launch Unity
1313
2. On the Projects dialog, choose the **Open** option at the top of the window.
14-
3. Using the file dialog that opens, locate the `unity-environment` folder within the ML-Agents project and click **Open**.
14+
3. Using the file dialog that opens, locate the `unity-environment` folder within the the ML-Agents toolkit project and click **Open**.
1515
4. Go to **Edit** > **Project Settings** > **Player**
1616
5. For **each** of the platforms you target
1717
(**PC, Mac and Linux Standalone**, **iOS** or **Android**):
1818
1. Option the **Other Settings** section.
1919
2. Select **Scripting Runtime Version** to
20-
**Experimental (.NET 4.6 Equivalent)**
20+
**Experimental (.NET 4.6 Equivalent or .NET 4.x Equivalent)**
2121
3. In **Scripting Defined Symbols**, add the flag `ENABLE_TENSORFLOW`.
2222
After typing in the flag name, press Enter.
2323
6. Go to **File** > **Save Project**
@@ -67,7 +67,7 @@ object.
6767

6868
### Training the environment
6969
1. Open a command or terminal window.
70-
2. Nagivate to the folder where you installed ML-Agents.
70+
2. Nagivate to the folder where you installed the ML-Agents toolkit.
7171
3. Change to the `python` directory.
7272
4. Run `python3 learn.py --run-id=<run-identifier> --train`
7373
Where:
@@ -99,7 +99,7 @@ to the **Graph Model** placeholder in the **Ball3DBrain** inspector window.
9999

100100
## Next Steps
101101

102-
* For more information on ML-Agents, in addition to helpful background, check out the [ML-Agents Overview](ML-Agents-Overview.md) page.
102+
* For more information on the ML-Agents toolkit, in addition to helpful background, check out the [ML-Agents Toolkit Overview](ML-Agents-Overview.md) page.
103103
* For a more detailed walk-through of our 3D Balance Ball environment, check out the [Getting Started](Getting-Started-with-Balance-Ball.md) page.
104104
* For a "Hello World" introduction to creating your own learning environment, check out the [Making a New Learning Environment](Learning-Environment-Create-New.md) page.
105105
* For a series of Youtube video tutorials, checkout the [Machine Learning Agents PlayList](https://www.youtube.com/playlist?list=PLX2vGYjWbI0R08eWQkO7nQkGiicHAX7IX) page.

docs/FAQ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
### Scripting Runtime Environment not setup correctly
55

6-
If you haven't switched your scripting runtime version from .NET 3.5 to .NET 4.6, you will see such error message:
6+
If you haven't switched your scripting runtime version from .NET 3.5 to .NET 4.6 or .NET 4.x, you will see such error message:
77

88
```
99
error CS1061: Type `System.Text.StringBuilder' does not contain a definition for `Clear' and no extension method `Clear' of type `System.Text.StringBuilder' could be found. Are you missing an assembly reference?
1010
```
1111

12-
This is because .NET 3.5 doesn't support method Clear() for StringBuilder, refer to [Setting Up ML-Agents Within Unity](Installation.md#setting-up-ml-agent-within-unity) for solution.
12+
This is because .NET 3.5 doesn't support method Clear() for StringBuilder, refer to [Setting Up The ML-Agents Toolkit Within Unity](Installation.md#setting-up-ml-agent-within-unity) for solution.
1313

1414
### TensorFlowSharp flag not turned on.
1515

@@ -19,7 +19,7 @@ If you have already imported the TensorFlowSharp plugin, but havn't set ENABLE_T
1919
You need to install and enable the TensorFlowSharp plugin in order to use the internal brain.
2020
```
2121

22-
This error message occurs because the TensorFlowSharp plugin won't be usage without the ENABLE_TENSORFLOW flag, refer to [Setting Up ML-Agents Within Unity](Installation.md#setting-up-ml-agent-within-unity) for solution.
22+
This error message occurs because the TensorFlowSharp plugin won't be usage without the ENABLE_TENSORFLOW flag, refer to [Setting Up The ML-Agents Toolkit Within Unity](Installation.md#setting-up-ml-agent-within-unity) for solution.
2323

2424
### Tensorflow epsilon placeholder error
2525

docs/Getting-Started-with-Balance-Ball.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Getting Started with the 3D Balance Ball Environment
22

3-
This tutorial walks through the end-to-end process of opening an ML-Agents
3+
This tutorial walks through the end-to-end process of opening a ML-Agents toolkit
44
example environment in Unity, building the Unity executable, training an agent
55
in it, and finally embedding the trained model into the Unity environment.
66

7-
ML-Agents includes a number of [example environments](Learning-Environment-Examples.md)
8-
which you can examine to help understand the different ways in which ML-Agents
7+
The ML-Agents toolkit includes a number of [example environments](Learning-Environment-Examples.md)
8+
which you can examine to help understand the different ways in which the ML-Agents toolkit
99
can be used. These environments can also serve as templates for new
1010
environments or as ways to test new ML algorithms. After reading this tutorial,
1111
you should be able to explore and build the example environments.
@@ -24,7 +24,7 @@ Let's get started!
2424

2525
## Installation
2626

27-
In order to install and set up ML-Agents, the Python dependencies and Unity,
27+
In order to install and set up the ML-Agents toolkit, the Python dependencies and Unity,
2828
see the [installation instructions](Installation.md).
2929

3030
## Understanding a Unity Environment (3D Balance Ball)
@@ -108,7 +108,7 @@ when you embed the trained model in the Unity application, you will change the
108108
**Vector Observation Space**
109109

110110
Before making a decision, an agent collects its observation about its state
111-
in the world. ML-Agents classifies vector observations into two types:
111+
in the world. The ML-Agents toolkit classifies vector observations into two types:
112112
**Continuous** and **Discrete**. The **Continuous** vector observation space
113113
collects observations in a vector of floating point numbers. The **Discrete**
114114
vector observation space is an index into a table of states. Most of the example
@@ -124,7 +124,7 @@ values are defined in the agent's `CollectObservations()` function.)
124124
**Vector Action Space**
125125

126126
An agent is given instructions from the brain in the form of *actions*. Like
127-
states, ML-Agents classifies actions into two types: the **Continuous**
127+
states, ML-Agents toolkit classifies actions into two types: the **Continuous**
128128
vector action space is a vector of numbers that can vary continuously. What
129129
each element of the vector means is defined by the agent logic (the PPO
130130
training process just learns what values are better given particular state
@@ -193,7 +193,7 @@ In order to train an agent to correctly balance the ball, we will use a
193193
Reinforcement Learning algorithm called Proximal Policy Optimization (PPO).
194194
This is a method that has been shown to be safe, efficient, and more general
195195
purpose than many other RL algorithms, as such we have chosen it as the
196-
example algorithm for use with ML-Agents. For more information on PPO,
196+
example algorithm for use with ML-Agents toolkit. For more information on PPO,
197197
OpenAI has a recent [blog post](https://blog.openai.com/openai-baselines-ppo/)
198198
explaining it.
199199

@@ -217,7 +217,7 @@ When the message _"Start training by pressing the Play button in the Unity Edito
217217

218218
**Note**: If you're using Anaconda, don't forget to activate the ml-agents environment first.
219219

220-
The `--train` flag tells ML-Agents to run in training mode.
220+
The `--train` flag tells the ML-Agents toolkit to run in training mode.
221221

222222
**Note**: You can train using an executable rather than the Editor. To do so, follow the intructions in
223223
[Using an Execuatble](Learning-Environment-Executable.md).
@@ -271,7 +271,7 @@ Because TensorFlowSharp support is still experimental, it is disabled by
271271
default. In order to enable it, you must follow these steps. Please note that
272272
the `Internal` Brain mode will only be available once completing these steps.
273273

274-
To set up the TensorFlowSharp Support, follow [Setting up ML-Agents within Unity](Basic-Guide.md#setting-up-ml-agents-within-unity) section.
274+
To set up the TensorFlowSharp Support, follow [Setting up ML-Agents Toolkit within Unity](Basic-Guide.md#setting-up-ml-agents-within-unity) section.
275275
of the Basic Guide page.
276276

277277
### Embedding the trained model into Unity

docs/Glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ML-Agents Glossary
1+
# ML-Agents Toolkit Glossary
22

33
* **Academy** - Unity Component which controls timing, reset, and
44
training/inference settings of the environment.

0 commit comments

Comments
 (0)