(self, model=None, metric=None, batch=None, epoch=None, dataloader=None,
                  lookback=None, timestamp=None, value=np.nan)
Add entry to the internal database.
Add entry to the internal database.
Add entry to the internal database .
def add_entry(self, model=None, metric=None, batch=None, epoch=None, dataloader=None,
                  lookback=None, timestamp=None, value=np.nan):
        """Add entry to the internal database."""
        if epoch not in self.database:
            self.database[epoch] = []

        self.database[epoch].append({'model': model,
                                     'metric': metric,
                                     'value': value,
                                     'batch': batch,
                                     'epoch': epoch,
                                     'dataloader': dataloader,
                                     'lookback': lookback,
                                     'timestamp': timestamp,
                                     'current_time': datetime.datetime.now()})
def add_entry ( self , model = None , metric = None , batch = None , epoch = None , dataloader = None , lookback = None , timestamp = None , value = np . nan ) : if epoch not in self . database : self . database [ epoch ] = [ ] self . database [ epoch ] . append ( { 'model' : model , 'metric' : metric , 'value' : value , 'batch' : batch , 'epoch' : epoch , 'dataloader' : dataloader , 'lookback' : lookback , 'timestamp' : timestamp , 'current_time' : datetime . datetime . now ( ) } )