Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/r/l/rlpy-HEAD/rlpy/Domains/InfiniteTrackCartPole.py   rlpy(Download)
        self.state = ns.copy()
 
        terminal = self.isTerminal()  # automatically uses self.state
        reward = self._getReward(a)  # Automatically uses self.state
        possibleActions = self.possibleActions()
            for col, theta in enumerate(thetas):
                s = np.array([theta, thetaDot])
                terminal = self.isTerminal(s)
                # Array of Q-function evaluated at all possible actions at
                # state s

src/r/l/rlpy-HEAD/rlpy/Domains/FiniteTrackCartPole.py   rlpy(Download)
    def step(self, a):
        s = self.state
        ns = self._stepFourState(s, a)
        self.state = ns.copy()
        terminal = self.isTerminal()  # automatically uses self.state
            for col, theta in enumerate(thetas):
                s = np.array([theta, thetaDot, xSlice, xDotSlice])
                terminal = self.isTerminal(s)
                # Array of Q-function evaluated at all possible actions at
                # state s