(self)
Trains RL for one epoch.
Trains RL for one epoch.
Trains RL for one epoch .
def train_epoch(self):
    """Trains RL for one epoch."""
    # Copy policy state accumulated during data collection to the trainer.
    self._loop.update_weights_and_state(state=self._collect_model.state)
    # Train for the specified number of steps.
    self._loop.run(n_steps=self._n_train_steps_per_epoch)
def train_epoch ( self ) : # Copy policy state accumulated during data collection to the trainer. self . _loop . update_weights_and_state ( state = self . _collect_model . state ) # Train for the specified number of steps. self . _loop . run ( n_steps = self . _n_train_steps_per_epoch )