Skip to content
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

[MLA-1634] Remove SensorComponent.GetObservationShape() #5172

Merged
merged 3 commits into from
Mar 22, 2021

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Mar 22, 2021

Proposed change(s)

This started out as a change to replace GetObservationShape() with an ObservationSpec. But we stopped calling GetObservationShape when checking models a while ago, and now just create the sensor. So remove the whole thing from the interface.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Code refactor
  • Breaking change

Checklist

  • [n/a] Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • [n/a ] Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@@ -18,7 +18,7 @@ public class Match3SensorTests
public void TestVectorObservations()
{
var boardString =
@"000
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not look correct. (The indent I mean)

Copy link
Contributor

@dongruoping dongruoping left a comment

Choose a reason for hiding this comment

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

looks good to me

@@ -18,7 +18,7 @@ public class Match3SensorTests
public void TestVectorObservations()
{
var boardString =
@"000
@"000
Copy link
Contributor

Choose a reason for hiding this comment

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

intended?
(There's a few more below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, coding package reformatted them (and a few other files). Will revert.

@chriselion chriselion merged commit eac2776 into main Mar 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the MLA-1634-SensorComponent branch March 22, 2021 22:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2022
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