From 936a3a7b5730db0c787663b3d963897e7a8a7d1e Mon Sep 17 00:00:00 2001 From: Philipp Siedler Date: Thu, 18 Feb 2021 03:03:22 +0000 Subject: [PATCH] Masking Discrete Actions typos (#4961) --- docs/Learning-Environment-Design-Agents.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Learning-Environment-Design-Agents.md b/docs/Learning-Environment-Design-Agents.md index e4d113abb4..a8d171901e 100644 --- a/docs/Learning-Environment-Design-Agents.md +++ b/docs/Learning-Environment-Design-Agents.md @@ -623,7 +623,7 @@ decide to perform the masked action. In order to mask an action, override the ```csharp public override void WriteDiscreteActionMask(IDiscreteActionMask actionMask) { - actionMasker.WriteMask(branch, actionIndices) + actionMask.WriteMask(branch, actionIndices); } ``` @@ -641,7 +641,7 @@ nothing"_ or _"change weapon"_ for his next decision (since action index 1 and 2 are masked) ```csharp -WriteMask(0, new int[2]{1,2}) +WriteMask(0, new int[2]{1,2}); ``` Notes: