Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void backpropagate() {
- Node curNode = new Node(null,-1,-1);
- double score = 0;
- for (int i = 0 ; i < pods.length ; i++) {
- curNode = current[i];
- score = curNode.score;
- while (curNode.parent != null) {
- curNode.parent.score += score;
- curNode.visits++;
- curNode = curNode.parent;
- }
- if (curNode.parent == null) {
- //minLog("Increment root !");
- curNode.visits++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement