(self, itr, traj_sample_lists, pol_sample_lists=None)
Log data and algorithm, and update the GUI.
        Args:
            itr: Iteration number.
            traj_sample_lists: trajectory samples as SampleList object
            pol_sample_lists: policy samples as SampleList object
        Returns: None
Log data and algorithm, and update the GUI.
        Args:
            itr: Iteration number.
            traj_sample_lists: trajectory samples as SampleList object
            pol_sample_lists: policy samples as SampleList object
        Returns: None
Log data and algorithm and update the GUI . Args : itr : Iteration number . traj_sample_lists : trajectory samples as SampleList object pol_sample_lists : policy samples as SampleList object Returns : None
def _log_data(self, itr, traj_sample_lists, pol_sample_lists=None):
        """
        Log data and algorithm, and update the GUI.
        Args:
            itr: Iteration number.
            traj_sample_lists: trajectory samples as SampleList object
            pol_sample_lists: policy samples as SampleList object
        Returns: None
        """
        if self.gui:
            self.gui.set_status_text('Logging data and updating GUI.')
            self.gui.update(itr, self.algorithm, self.agent,
                traj_sample_lists, pol_sample_lists)
            self.gui.save_figure(
                self._data_files_dir + ('figure_itr_%02d.png' % itr)
            )
        if 'no_sample_logging' in self._hyperparams['common']:
            return
        self.data_logger.pickle(
            self._data_files_dir + ('algorithm_itr_%02d.pkl' % itr),
            copy.copy(self.algorithm)
        )
        self.data_logger.pickle(
            self._data_files_dir + ('traj_sample_itr_%02d.pkl' % itr),
            copy.copy(traj_sample_lists)
        )
        if pol_sample_lists:
            self.data_logger.pickle(
                self._data_files_dir + ('pol_sample_itr_%02d.pkl' % itr),
                copy.copy(pol_sample_lists)
            )
def _log_data ( self , itr , traj_sample_lists , pol_sample_lists = None ) : if self . gui : self . gui . set_status_text ( 'Logging data and updating GUI.' ) self . gui . update ( itr , self . algorithm , self . agent , traj_sample_lists , pol_sample_lists ) self . gui . save_figure ( self . _data_files_dir + ( 'figure_itr_%02d.png' % itr ) ) if 'no_sample_logging' in self . _hyperparams [ 'common' ] : return self . data_logger . pickle ( self . _data_files_dir + ( 'algorithm_itr_%02d.pkl' % itr ) , copy . copy ( self . algorithm ) ) self . data_logger . pickle ( self . _data_files_dir + ( 'traj_sample_itr_%02d.pkl' % itr ) , copy . copy ( traj_sample_lists ) ) if pol_sample_lists : self . data_logger . pickle ( self . _data_files_dir + ( 'pol_sample_itr_%02d.pkl' % itr ) , copy . copy ( pol_sample_lists ) )