alpaca/alpacka/agents/stochastic_mcts.py
def visit(self, reward, value):
        """Records a visit in the node during backpropagation.

        Args:
            reward (float): Reward collected when stepping into the node.
            value (float or None): Value accumulated on the path out of the
                node, or None if value should not be accumulated.
        """
        self._reward_sum += reward
        self._reward_count += 1
        # Terminal nodes don't have GraphNodes assigned, so don't update value.
        if not self.is_terminal and value is not None:
            assert self.graph_node is not None, (
                'Graph node must be assigned first.'
            )
            self.graph_node.visit(value)
Records a visit in the node during backpropagation.

        Args:
            reward (float): Reward collected when stepping into the node.
            value (float or None): Value accumulated on the path out of the
                node, or None if value should not be accumulated.
        
Records a visit in the node during backpropagation.
Records a visit in the node during backpropagation .
def visit(self, reward, value):
        self._reward_sum += reward
        self._reward_count += 1
        if not self.is_terminal and value is not None:
            assert self.graph_node is not None, (
                'Graph node must be assigned first.'
            )
            self.graph_node.visit(value)
def visit ( self , reward , value ) : self . _reward_sum += reward self . _reward_count += 1 if not self . is_terminal and value is not None : assert self . graph_node is not None , ( 'Graph node must be assigned first.' ) self . graph_node . visit ( value )
Records a visit in the node during backpropagation.
Records a visit in the node during backpropagation .
"""Records a visit in the node during backpropagation.

        Args:
            reward (float): Reward collected when stepping into the node.
            value (float or None): Value accumulated on the path out of the
                node, or None if value should not be accumulated.
        """ # Terminal nodes don't have GraphNodes assigned, so don't update value.
self
reward
Reward collected when stepping into the node.
Reward collected when stepping into the node .
value
Value accumulated on the path out of the
node, or None if value should not be accumulated.
Value accumulated on the path out of the node or None if value should not be accumulated .