Skip to content

Conversation

@vincentpierre
Copy link
Contributor

@vincentpierre vincentpierre commented Aug 24, 2018

Action masking makes GridWorld learn faster because it does not waste time bumping into walls.
screen shot 2018-08-28 at 1 53 40 pm

Copy link

@mmattar mmattar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the tensorboard comparison graphs?

var positionX = (int) transform.position.x;
var positionZ = (int) transform.position.z;
var maxPosition = academy.gridSize - 1;
if (positionX == 0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the constants 0 -> 3 in the conditionals (if position...) and in SetActionMask should be class static variables.

int action = Mathf.FloorToInt(vectorAction[0]);

// 0 - Forward, 1 - Backward, 2 - Left, 3 - Right
Vector3 targetPos = transform.position;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this comment

// Prevents the agent from picking an action that would make it collide with a wall
var positionX = (int) transform.position.x;
var positionZ = (int) transform.position.z;
var maxPosition = academy.gridSize - 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the grid size be changed at runtime? If not, move this to InitializeAgent

Copy link
Contributor Author

@vincentpierre vincentpierre Aug 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be changed at runtime yes. It is one of the reset maramiters.

vincentpierre and others added 2 commits August 27, 2018 16:49
* Added checkbox to turn action masking on/off
* Fix to handle the no-action option
@mmattar mmattar changed the base branch from develop to release-v0.5 August 29, 2018 19:22
@mmattar mmattar merged commit 464c4ef into release-v0.5 Aug 29, 2018
@awjuliani awjuliani deleted the develop-grid-world-mask branch September 5, 2018 01:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants