def _chooseAction(self):
        if self._mode != -1:
            if self._randomState.rand() < 0.05:
                action = self._randomState.randint(0, self._environment.nActions())
                V = 0
            else:
                action, V = self.bestAction()
        else:
            if self._replayMemoryStartSize > self._dataSet.nElems():
                # e-Greedy policy
                if self._randomState.rand() < self._epsilon:
                    action = self._randomState.randint(0, self._environment.nActions())
                    V = 0
                else:
                    action, V = self.bestAction()
            else:
                # Still gathering initial data: choose dummy action
                action = self._randomState.randint(0, self._environment.nActions())
                V = 0
                
        for c in self._controllers: c.OnActionChosen(self, action)
        return action, V
dataset/ETHPy150Open VinF/deer/deer/agent_ale.py/ALEAgent._chooseAction/swapped operands of `>`