(self)
Pulls newly added logs from the chief onto whatever worker CrayonWrapper runs on. It then adds all these new
        logs to Tensorboard (i.e. PyCrayon's docker container)
Pulls newly added logs from the chief onto whatever worker CrayonWrapper runs on. It then adds all these new
        logs to Tensorboard (i.e. PyCrayon's docker container)
Pulls newly added logs from the chief onto whatever worker CrayonWrapper runs on . It then adds all these new logs to Tensorboard ( i . e . PyCrayon s docker container )
def update_from_log_buffer(self):
        """
        Pulls newly added logs from the chief onto whatever worker CrayonWrapper runs on. It then adds all these new
        logs to Tensorboard (i.e. PyCrayon's docker container)
        """
        new_v, exp_names = self._get_new_vals()

        for e in exp_names:
            if e not in self._experiments.keys():
                self._custom_logs[e] = {}
                try:
                    self._experiments[e] = self._crayon.create_experiment(xp_name=e)
                except ValueError:
                    self._crayon.remove_experiment(xp_name=e)
                    self._experiments[e] = self._crayon.create_experiment(xp_name=e)

        for name, vals_dict in new_v.items():
            for graph_name, data_points in vals_dict.items():

                for data_point in data_points:
                    step = int(data_point[0])
                    val = data_point[1]

                    self._experiments[name].add_scalar_value(name=graph_name, step=step, value=val)
                    if graph_name not in self._custom_logs[name].keys():
                        self._custom_logs[name][graph_name] = []

                    self._custom_logs[name][graph_name].append({step: val})
def update_from_log_buffer ( self ) : new_v , exp_names = self . _get_new_vals ( ) for e in exp_names : if e not in self . _experiments . keys ( ) : self . _custom_logs [ e ] = { } try : self . _experiments [ e ] = self . _crayon . create_experiment ( xp_name = e ) except ValueError : self . _crayon . remove_experiment ( xp_name = e ) self . _experiments [ e ] = self . _crayon . create_experiment ( xp_name = e ) for name , vals_dict in new_v . items ( ) : for graph_name , data_points in vals_dict . items ( ) : for data_point in data_points : step = int ( data_point [ 0 ] ) val = data_point [ 1 ] self . _experiments [ name ] . add_scalar_value ( name = graph_name , step = step , value = val ) if graph_name not in self . _custom_logs [ name ] . keys ( ) : self . _custom_logs [ name ] [ graph_name ] = [ ] self . _custom_logs [ name ] [ graph_name ] . append ( { step : val } )