MCPcopy Create free account
hub / github.com/MARIO-Math-Reasoning/Super_MARIO / update

Method update

mcts_math/nodes/mcts_node.py:34–39  ·  view source on GitHub ↗
(self, value: float)

Source from the content-addressed store, hash-verified

32 self.__visit_count = count
33
34 def update(self, value: float) -> None:
35 # init value
36 if self.value == -100:
37 self.value = value
38 self.__visit_count += 1
39 self.__value_sum += value
40
41 def update_recursive(self, value: float, start_node: Type[BaseNode]) -> None:
42 self.update(value)

Callers 3

update_recursiveMethod · 0.95
generate_postprocessMethod · 0.80
batch_generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected