(self, sample_lists)
Run iteration of PI2.
        Args:
            sample_lists: List of SampleList objects for each condition.
Run iteration of PI2.
        Args:
            sample_lists: List of SampleList objects for each condition.
Run iteration of PI2 . Args : sample_lists : List of SampleList objects for each condition .
def iteration(self, sample_lists):
        """
        Run iteration of PI2.
        Args:
            sample_lists: List of SampleList objects for each condition.
        """
        # Copy samples for all conditions.
        for m in range(self.M):
            self.cur[m].sample_list = sample_lists[m]
    
        # Evaluate cost function for all conditions and samples.
        for m in range(self.M):
            self._eval_cost(m)            

        # Run inner loop to compute new policies.
        for _ in range(self._hyperparams['inner_iterations']):
            self._update_trajectories()

        self._advance_iteration_variables()
def iteration ( self , sample_lists ) : # Copy samples for all conditions. for m in range ( self . M ) : self . cur [ m ] . sample_list = sample_lists [ m ] # Evaluate cost function for all conditions and samples. for m in range ( self . M ) : self . _eval_cost ( m ) # Run inner loop to compute new policies. for _ in range ( self . _hyperparams [ 'inner_iterations' ] ) : self . _update_trajectories ( ) self . _advance_iteration_variables ( )