-
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
Make CollectObservations take a VectorSensor #3352
Conversation
Seems OK. I'm not sure it actually makes the API any smaller though, just moves it to VectorSensor. |
Yes, but it does simplify the Agent code (since it does not forward the calls to addobservation for every type of observation. |
But it also couples the public interface of Agent more closely to VectorSensor, whereas before they were decoupled (and we could theoretically change the implementation of how AddVectorObs worked) |
I retract my objections. Make it so! |
Co-Authored-By: Chris Elion <chris.elion@unity3d.com>
Co-Authored-By: Chris Elion <chris.elion@unity3d.com>
Co-Authored-By: Chris Elion <chris.elion@unity3d.com>
Co-Authored-By: Chris Elion <chris.elion@unity3d.com>
|
||
namespace MLAgents.Sensor | ||
namespace MLAgents |
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.
What's the reason for this change? Should we (roughly) keep the namespaces 1:1 with the subdirectories?
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.
Yes but now the user would have to import both MLAgents and MLAgents.Sensors when implementing an Agent that has a CollectObservation implementation
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.
All right. Removed the MLAgents.Sensor
namespace alltogether
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.
One question about the namespace, but looks good.
No description provided.