Ml-agents: Reward Monitor

Created on 13 Aug 2019  路  6Comments  路  Source: Unity-Technologies/ml-agents

I would like to display the anticipated reward above each agent, as displayed on several screenshots in the docs.

I looked into the Monitor.log class and also set the monitor active during training, however I don't know what value I should feed it to display the reward as on the image, and the page doesn't say anything on it:
https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Feature-Monitor.md

discussion

All 6 comments

Found the GetReward() function in Agent.cs. Would suggest to add these to the Monitor guide page for other users to find. What I'm still unsure about is how to display it over an agent ?

OK, it's the 3rd Monitor parameter, target, which one needs to feed this.transform to.

Found the GetReward() function in Agent.cs. Would suggest to add these to the Monitor guide page for other users to find. What I'm still unsure about is how to display it over an agent ?

Thanks for the feedback! We'll take another look at the Monitor docs.

Hi all. Hopefully you were able to get the Monitor working as desired. Closing this issue due to inactivity. Feel free to re-open if you feel necessary.

@MentalGear isn't GetReward() current reward of the game?
I was also searching for anticipated (future) reward. Yet to figure out.
Essentially the value function output, given the current state of the game and the action.
Is it possible to get the value function output in unity? @awjuliani

Was this page helpful?
0 / 5 - 0 ratings