liuanji / WU-UCT

A novel parallel UCT algorithm with linear speedup and negligible performance loss.
MIT License
110 stars 24 forks source link

how to understand the function select_expand_action() in UCTnode.py ? #8

Open stcy07 opened 1 year ago

stcy07 commented 1 year ago

in my opinion, the way choosing an action to expand is purely based on the prior probability or just random choice. So why there is a while loop? I don't quite understand the "if" condintions in the loop, especially this one:

if self.children_visit_count[action] > 0 and count < 10: count += 1 continue