(self, N=None)
return [SampleList(samples) for samples in pol_samples]
Take samples from the policy to see how it's doing.
        Args:
            N  : number of policy samples to take per condition
        Returns: None
Take samples from the policy to see how it's doing.
        Args:
            N  : number of policy samples to take per condition
        Returns: None
Take samples from the policy to see how it s doing . Args : N : number of policy samples to take per condition Returns : None
def _take_policy_samples(self, N=None):
        """
        Take samples from the policy to see how it's doing.
        Args:
            N  : number of policy samples to take per condition
        Returns: None
        """
        if 'verbose_policy_trials' not in self._hyperparams:
            # AlgorithmTrajOpt
            return None
        verbose = self._hyperparams['verbose_policy_trials']
        if self.gui:
            self.gui.set_status_text('Taking policy samples.')
        pol_samples = [[None] for _ in range(len(self._test_idx))]
        # Since this isn't noisy, just take one sample.
        # TODO: Make this noisy? Add hyperparam?
        # TODO: Take at all conditions for GUI?
        for cond in range(len(self._test_idx)):
            pol_samples[cond][0] = self.agent.sample(
                self.algorithm.policy_opt.policy, self._test_idx[cond],
                verbose=verbose, save=False, noisy=False)
        return [SampleList(samples) for samples in pol_samples]
def _take_policy_samples ( self , N = None ) : if 'verbose_policy_trials' not in self . _hyperparams : # AlgorithmTrajOpt return None verbose = self . _hyperparams [ 'verbose_policy_trials' ] if self . gui : self . gui . set_status_text ( 'Taking policy samples.' ) pol_samples = [ [ None ] for _ in range ( len ( self . _test_idx ) ) ] # Since this isn't noisy, just take one sample. # TODO: Make this noisy? Add hyperparam? # TODO: Take at all conditions for GUI? for cond in range ( len ( self . _test_idx ) ) : pol_samples [ cond ] [ 0 ] = self . agent . sample ( self . algorithm . policy_opt . policy , self . _test_idx [ cond ] , verbose = verbose , save = False , noisy = False ) return [ SampleList ( samples ) for samples in pol_samples ]