pyspark/bigdl/examples/keras/keras_utils.py
def save_keras_definition(keras_model, path):
    """
    Save a Keras model definition to JSON with given path
    """
    model_json = keras_model.to_json()
    with open(path, "w") as json_file:
        json_file.write(model_json)
def save_keras_definition(keras_model, path):
    model_json = keras_model.to_json()
    with open(path, "w") as json_file:
        json_file.write(model_json)
def save_keras_definition ( keras_model , path ) : model_json = keras_model . to_json ( ) with open ( path , "w" ) as json_file : json_file . write ( model_json )
Save a Keras model definition to JSON with given path
Save a Keras model definition to JSON with given path