REST API - Tensorflow/model/model.py
def batch_train_online(self, train, label):
        """
        Trains the model from the point it was left at previously
        """
              
        self.model.fit(train, label,
                       batch_size=BATCH_SIZE,
                       epochs=EPOCHS,
                       verbose=1,
                       validation_split= 0.1, callbacks= [self.best_model])
            
        logging.info('Model Updated with new training data...Training completed. Saving the model now')

        #self.model.save(os.path.join(os.getcwd()  ,'SAVED_MODELS', 'mnist_model.h5'))
        
        logging.info("Model Saved Successfully at: {}".format(os.path.join(os.getcwd()  ,'SAVED_MODELS', 'mnist_model.h5')))

        Trains the model from the point it was left at previously
        
Trains the model from the point it was left at previously
Trains the model from the point it was left at previously
def batch_train_online(self, train, label):
        self.model.fit(train, label,
                       batch_size=BATCH_SIZE,
                       epochs=EPOCHS,
                       verbose=1,
                       validation_split= 0.1, callbacks= [self.best_model])
        logging.info('Model Updated with new training data...Training completed. Saving the model now')
        logging.info("Model Saved Successfully at: {}".format(os.path.join(os.getcwd()  ,'SAVED_MODELS', 'mnist_model.h5')))
def batch_train_online ( self , train , label ) : self . model . fit ( train , label , batch_size = BATCH_SIZE , epochs = EPOCHS , verbose = 1 , validation_split = 0.1 , callbacks = [ self . best_model ] ) logging . info ( 'Model Updated with new training data...Training completed. Saving the model now' ) logging . info ( "Model Saved Successfully at: {}" . format ( os . path . join ( os . getcwd ( ) , 'SAVED_MODELS' , 'mnist_model.h5' ) ) )
Trains the model from the point it was left at previously
Trains the model from the point it was left at previously
"""
        Trains the model from the point it was left at previously
        """ #self.model.save(os.path.join(os.getcwd()  ,'SAVED_MODELS', 'mnist_model.h5'))
self
train
label