alpaca/alpacka/batch_steppers.py
def run(self, params, solve_kwargs):
                """Runs the episode using the given network parameters."""
                self.network.params = params
                episode_cor = self.agent.solve(self.env, **solve_kwargs)
                # TODO(pj): This block of code is the same in LocalBatchStepper
                # too. Move it to the BatchStepper base class.
                try:
                    inputs = next(episode_cor)
                    while True:
                        predictions = self.network.predict(inputs)
                        inputs = episode_cor.send(predictions)
                except StopIteration as e:
                    episode = e.value
                    return episode
Runs the episode using the given network parameters.
Runs the episode using the given network parameters.
Runs the episode using the given network parameters .
def run(self, params, solve_kwargs):
                self.network.params = params
                episode_cor = self.agent.solve(self.env, **solve_kwargs)
                try:
                    inputs = next(episode_cor)
                    while True:
                        predictions = self.network.predict(inputs)
                        inputs = episode_cor.send(predictions)
                except StopIteration as e:
                    episode = e.value
                    return episode
def run ( self , params , solve_kwargs ) : self . network . params = params episode_cor = self . agent . solve ( self . env , ** solve_kwargs ) try : inputs = next ( episode_cor ) while True : predictions = self . network . predict ( inputs ) inputs = episode_cor . send ( predictions ) except StopIteration as e : episode = e . value return episode
Runs the episode using the given network parameters.
Runs the episode using the given network parameters .
"""Runs the episode using the given network parameters.""" # TODO(pj): This block of code is the same in LocalBatchStepper # too. Move it to the BatchStepper base class.
self
params
solve_kwargs