basic_utils/utils.py
def print_table(self):
        """
        Print the saved information, then delete the previous saved information.
        """
        self.counter += 1
        stats = OrderedDict()
        add_episode_stats(stats, self.path_info)
        for d in self.extra_info:
            stats[d] = self.extra_info[d]
        for di in self.u_stats:
            for k in self.u_stats[di]:
                self.u_stats[di][k] = np.mean(self.u_stats[di][k])
        for u in self.u_stats:
            add_prefixed_stats(stats, u, self.u_stats[u])
        stats["TimeElapsed"] = time.time() - self.tstart

        print("************ Iteration %i ************" % self.counter)
        print(tabulate(filter(lambda k: np.asarray(k[1]).size == 1, stats.items())))

        self.scores += self.path_info['episoderewards']
        self.u_stats = dict()
        self.path_info = defaultdict(list)
        self.extra_info = dict()

        return self.counter

        Print the saved information, then delete the previous saved information.
        
Print the saved information, then delete the previous saved information.
Print the saved information then delete the previous saved information .
def print_table(self):
        self.counter += 1
        stats = OrderedDict()
        add_episode_stats(stats, self.path_info)
        for d in self.extra_info:
            stats[d] = self.extra_info[d]
        for di in self.u_stats:
            for k in self.u_stats[di]:
                self.u_stats[di][k] = np.mean(self.u_stats[di][k])
        for u in self.u_stats:
            add_prefixed_stats(stats, u, self.u_stats[u])
        stats["TimeElapsed"] = time.time() - self.tstart
        print("************ Iteration %i ************" % self.counter)
        print(tabulate(filter(lambda k: np.asarray(k[1]).size == 1, stats.items())))
        self.scores += self.path_info['episoderewards']
        self.u_stats = dict()
        self.path_info = defaultdict(list)
        self.extra_info = dict()
        return self.counter
def print_table ( self ) : self . counter += 1 stats = OrderedDict ( ) add_episode_stats ( stats , self . path_info ) for d in self . extra_info : stats [ d ] = self . extra_info [ d ] for di in self . u_stats : for k in self . u_stats [ di ] : self . u_stats [ di ] [ k ] = np . mean ( self . u_stats [ di ] [ k ] ) for u in self . u_stats : add_prefixed_stats ( stats , u , self . u_stats [ u ] ) stats [ "TimeElapsed" ] = time . time ( ) - self . tstart print ( "************ Iteration %i ************" % self . counter ) print ( tabulate ( filter ( lambda k : np . asarray ( k [ 1 ] ) . size == 1 , stats . items ( ) ) ) ) self . scores += self . path_info [ 'episoderewards' ] self . u_stats = dict ( ) self . path_info = defaultdict ( list ) self . extra_info = dict ( ) return self . counter
Print the saved information, then delete the previous saved information.
Print the saved information then delete the previous saved information .
"""
        Print the saved information, then delete the previous saved information.
        """
self