To keep self-play from repeating the same opening, AlphaZero mixes Dirichlet noise into the prior at the root of the search. The noise forces the search to consider moves the network would otherwise ignore.
Implement dirichlet_mix(P, noise, eps), blending the prior with the noise.
eps is typically 0.25 in AlphaZero.Weight the prior by 1 - eps and the noise by eps.
No results yet
Run your code to check it against the examples, or submit to run every test.