ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

About evaluate and update method

Open MengqiYe opened this issue 7 years ago • 3 comments

I found that evaluate and update methods are not called equally in different scenes. In 3DBallHard, Evaluate Count: 1001, Update Count: 0 Evaluate Count: 2001, Update Count: 30 Evaluate Count: 3001, Update Count: 60 ... In 3DBall, Evaluate Count: 1001, Update Count: 0 Evaluate Count: 2001, Update Count: 3003 Evaluate Count: 3001, Update Count: 6003 ... Why is update called so differently? I noticed 3DBall uses curiosity and the other one doesn't. Is update called to update ICM inner model? And how is advantage in buffer calculated?

MengqiYe avatar May 07 '19 10:05 MengqiYe

Hi @seaswander, neither 3DBall nor 3DBallHard requires curiosity - you can turn it off and 3DBall should still learn. The update count and evaluate count are probably differing because of the vastly different batch sizes for both of these. So for a fixed buffer size, one will perform many more (smaller) updates than the other.

Where are you seeing this output? Is it on the ml-agents CLI?

ervteng avatar May 07 '19 18:05 ervteng

Thanks for your explanation. The output is a usage count I add to the code.

MengqiYe avatar May 10 '19 00:05 MengqiYe

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 20 '20 23:05 lock[bot]