After search, AlphaZero uses the visit counts of the root moves as the training target for the policy. A temperature controls how sharp that target is: high temperature explores, low temperature plays the most-visited move.
Implement visit_distribution(counts, tau), returning the normalized counts raised to 1 / tau.
Raise each count to 1 / tau, then divide by the total.
No results yet
Run your code to check it against the examples, or submit to run every test.