Skip to content

Commit 8856c3a

Browse files
committed
Update docs
1 parent 9b3520f commit 8856c3a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

com.unity.ml-agents/Tests/Editor/Inference/ModelRunnerTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ public void TestRunModel_stochastic()
196196
info1.episodeId = 1;
197197
modelRunner.PutObservations(info1, obs);
198198
modelRunner.DecideBatch();
199-
var stochAction1 = (float[]) modelRunner.GetAction(1).ContinuousActions.Array.Clone();
199+
var stochAction1 = (float[])modelRunner.GetAction(1).ContinuousActions.Array.Clone();
200200

201201
modelRunner.PutObservations(info1, obs);
202202
modelRunner.DecideBatch();
203-
var stochAction2 = (float[]) modelRunner.GetAction(1).ContinuousActions.Array.Clone();
203+
var stochAction2 = (float[])modelRunner.GetAction(1).ContinuousActions.Array.Clone();
204204
// Stochastic action selection should output randomly different action values with same obs
205205
Assert.IsFalse(Enumerable.SequenceEqual(stochAction1, stochAction2, new FloatThresholdComparer(0.001f)));
206206
modelRunner.Dispose();

docs/Getting-Started.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ example.
119119
**Note** : You can modify multiple game objects in a scene by selecting them
120120
all at once using the search bar in the Scene Hierarchy.
121121
1. Set the **Inference Device** to use for this model as `CPU`.
122-
1. If the model is trained with Release 19 or later, you can select
123-
`Deterministic Inference` to choose actions deterministically from the model.
122+
1. If the model is trained with Release 19 or later, you can select
123+
`Deterministic Inference` to choose actions deterministically from the model.
124+
Works only for inference within unity with no python process involved.
124125
1. Click the **Play** button in the Unity Editor and you will see the platforms
125126
balance the balls using the pre-trained model.
126127

docs/Learning-Environment-Design-Agents.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -987,9 +987,9 @@ be called independently of the `Max Step` property.
987987
training)
988988
- `Inference Device` - Whether to use CPU or GPU to run the model during
989989
inference
990-
- `Deterministic Inference` - Weather to set action selection to deterministic,
991-
Only applies to inference from within unity (no python process involved) and
992-
Release 19 or later.
990+
- `Deterministic Inference` - Weather to set action selection to deterministic,
991+
Only applies to inference from within unity (with no python process involved) and
992+
Release 19 or later.
993993
- `Behavior Type` - Determines whether the Agent will do training, inference,
994994
or use its Heuristic() method:
995995
- `Default` - the Agent will train if they connect to a python trainer,

0 commit comments

Comments
 (0)