Skip to content

Update Learning-Environment-Design-Agents.md #1659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 6, 2019

Conversation

Lucretiel
Copy link
Contributor

Various documentation updates for the updated interface

AddVectorObs(speed.x);
AddVectorObs(speed.y);
AddVectorObs(speed.z);
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you removing this part?

Copy link
Contributor Author

@Lucretiel Lucretiel Feb 6, 2019

Choose a reason for hiding this comment

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

Because the following statements are no longer true:

You must explicitly convert Boolean values to a number.

For entities like positions and rotations, you [should] add their components to the feature list individually.

I can retain the examples, but I'd just be rewriting them to call AddVectorObs(isTrueOrFalse) and AddVectorObs(speed), which seemed unnecessary. The previous author apparently thought that an example for directly adding integers was unnecessary, so I followed the same custom for these types as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense.

@@ -128,24 +128,12 @@ properties to use a continuous vector observation:
* **Space Size** — The state size must match the length of your feature vector.

The observation feature vector is a list of floating point numbers, which means
you must convert any other data types to a float or a list of floats.
you must convert any other data types to a float or a list of floats.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the extra space.

AddVectorObs((int)currentItem, NUM_ITEM_TYPES);
}
```

Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense.

Copy link
Contributor

@TashaSkyUp TashaSkyUp left a comment

Choose a reason for hiding this comment

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

Makes sense.

@xiaomaogy xiaomaogy changed the base branch from master to develop February 6, 2019 19:48
@xiaomaogy xiaomaogy merged commit e5b578a into Unity-Technologies:develop Feb 6, 2019
LeSphax pushed a commit to LeSphax/ml-agents-1 that referenced this pull request May 3, 2020
* Update Learning-Environment-Design-Agents.md

* Space typo

* Word change
@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.

4 participants