alpaca/alpacka/agents/stochastic_mcts.py
def quality(self, discount):
        """Returns the quality of going into this node in the search tree.

        We use it instead of value, so we can handle dense rewards.
        Quality(s, a) = reward(s, a) + discount * value(s').
        """
        return self._reward_sum / self._reward_count + discount * (
            self._graph_node.value
            if self._graph_node is not None else self._init_value
        )
Returns the quality of going into this node in the search tree.

        We use it instead of value, so we can handle dense rewards.
        Quality(s, a) = reward(s, a) + discount * value(s').
        
Returns the quality of going into this node in the search tree.
We use it instead of value, so we can handle dense rewards.
Returns the quality of going into this node in the search tree . We use it instead of value so we can handle dense rewards .
def quality(self, discount):
        return self._reward_sum / self._reward_count + discount * (
            self._graph_node.value
            if self._graph_node is not None else self._init_value
        )
def quality ( self , discount ) : return self . _reward_sum / self . _reward_count + discount * ( self . _graph_node . value if self . _graph_node is not None else self . _init_value )
Returns the quality of going into this node in the search tree.
Returns the quality of going into this node in the search tree .
"""Returns the quality of going into this node in the search tree.

        We use it instead of value, so we can handle dense rewards.
        Quality(s, a) = reward(s, a) + discount * value(s').
        """
self
discount