-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[WIP] Observation Types #4825
[WIP] Observation Types #4825
Conversation
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class UnityToExternalProto(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you expect this file to change (especially with this new class)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an artifact of my building the proto files using a newer version of grpc-tools
, as I am still unable to install older versions. I'll try again to figure out the problem and build these with the version we are using internally though, since there are obviously discrepancies in what is being produced.
General feedback:
|
Thanks for the code review, Chris. These are both good questions. The issue with I agree though that "type" is too generic, and potentially problematic wrt python naming. Definitely open to other more appropriate names for it. |
…to-job [Sensor-types] Fix proto generation job and apply patch
/// <summary> | ||
/// Sensor interface for sensors with variable types. | ||
/// </summary> | ||
internal interface ITypedSensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this interface be public? Are users expected to add ObservationType
to their sensors or not for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't need to be, since any ISensor that isn't an ITypedSensor should be treated as Default type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intention is similar to making the DimensionProperty internal for now. To not change the public API until there are actual features to use it.
Proposed change(s)
Adds a
ObservationType
field to theObservationSpec
.ObservationType
is an enum consisting of one of the following:Todo:
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments