(self, start_state, restart_prob=0.0001)
:param start_state:  The initial state from which exploration stems.
        :param restart_prob: The probability of randomly restarting the search (default 0.0001).
:param start_state:  The initial state from which exploration stems.
        :param restart_prob: The probability of randomly restarting the search (default 0.0001).
: param start_state : The initial state from which exploration stems . : param restart_prob : The probability of randomly restarting the search ( default 0 . 0001 ) .
def __init__(self, start_state, restart_prob=0.0001):
        """
        :param start_state:  The initial state from which exploration stems.
        :param restart_prob: The probability of randomly restarting the search (default 0.0001).
        """
        super(StochasticSearch, self).__init__()
        self.start_state = start_state
        self.restart_prob = restart_prob
        self._random = random.Random()
        self._random.seed(42)
        self.affinity = defaultdict(self._random.random)
def __init__ ( self , start_state , restart_prob = 0.0001 ) : super ( StochasticSearch , self ) . __init__ ( ) self . start_state = start_state self . restart_prob = restart_prob self . _random = random . Random ( ) self . _random . seed ( 42 ) self . affinity = defaultdict ( self . _random . random )