(model, save_model, save_path)
function used to save a model with its .h5 file and .json instance
    :param modeL; the models dictionary used
    :param save_model, whether you want to save the model
    :param save_path: location where you want to save the model
function used to save a model with its .h5 file and .json instance
    :param modeL; the models dictionary used
    :param save_model, whether you want to save the model
    :param save_path: location where you want to save the model
function used to save a model with its . h5 file and . json instance : param modeL ; the models dictionary used : param save_model whether you want to save the model : param save_path : location where you want to save the model
def save(model, save_model, save_path):
    '''
    function used to save a model with its .h5 file and .json instance
    :param modeL; the models dictionary used
    :param save_model, whether you want to save the model
    :param save_path: location where you want to save the model
    '''
    global number
    model_json = model.to_json()
    with open(save_path + "/model" + str(number) + ".json", "w") as json_file:
        json_file.write(model_json)
        # serialize weights to HDF5
        model.save_weights(save_path + "/weights" + str(number) + ".h5")
        logger("->", "Saved model to disk as model" + str(number))
    number = number + 1
def save ( model , save_model , save_path ) : global number model_json = model . to_json ( ) with open ( save_path + "/model" + str ( number ) + ".json" , "w" ) as json_file : json_file . write ( model_json ) # serialize weights to HDF5 model . save_weights ( save_path + "/weights" + str ( number ) + ".h5" ) logger ( "->" , "Saved model to disk as model" + str ( number ) ) number = number + 1