From 45b5a8ad6b838316f196e80d2412b8cd7f760064 Mon Sep 17 00:00:00 2001 From: Akash Kumar <20ee01071@iitbbs.ac.in> Date: Mon, 3 Apr 2023 23:41:26 +0530 Subject: [PATCH] backpropagate() changed to backup() --- monte_carlo_tree_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monte_carlo_tree_search.py b/monte_carlo_tree_search.py index 17c8377..8677a84 100644 --- a/monte_carlo_tree_search.py +++ b/monte_carlo_tree_search.py @@ -1,4 +1,4 @@ -import torch + import math import numpy as np @@ -137,7 +137,7 @@ def run(self, model, state, to_play): return root - def backpropagate(self, search_path, value, to_play): + def backup(self, search_path, value, to_play): """ At the end of a simulation, we propagate the evaluation all the way up the tree to the root.