-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Make the demoRecorder write the experience on reset #3463
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
Conversation
BTW can you re-record |
{ | ||
AgentAction(m_Action.vectorActions); | ||
} | ||
AgentAction(m_Action.vectorActions); | ||
} | ||
} | ||
|
||
void DecideAction() | ||
{ | ||
m_Action.vectorActions = m_Brain?.DecideAction(); |
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.
Can we just call ResetData()
here if there aren't any vectorActions?
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.
Yeah, I think that might be better; ResetData() resets the stored actions, but this change keeps them (possibly with stale data).
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.
We are not really reseting the data, we are generating a vector of zeros in the case the action is null
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.
Alright, changed it since there seems to be consensus.
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.
Then how about moving the vectorAction code from ResetData to a new method (ResetActions()?), call that from ResetData, and call it here?
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.
Sorry, missed your most recent comment before I made mine.
* Make the demoRecorder write the experience on reset * do nothing if demostore is null * Calling reset data if the action is null
Proposed change(s)
Fixing the demo recording of experiences when the agent is done
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
ML-640
Types of change(s)
Checklist
Other comments