What does a deep learning model look like in file?
Yes you are right. It depends on which frameworks you are using for training the model.

For example, if you use tensorflow framework, the trained model will be saved into several files. You can save and load model into two ways:


Checkpoint
Savedmodel (freeze)


Please check this link. Here

In keras, Model weights are saved to HDF5 format. This is a grid format that is ideal for storing multi-dimensional arrays of numbers. you can save and load your model to file:


Save Model to JSON.
Save Model to YAML.


The JSON format of the model looks like the following:

    {  
   "keras_version":"2.0.2",
   "backend":"theano",
   "config":[  
      {  
     "config":{  
        "dtype":"float32",
        "bias_regularizer":null,
        "activation":"relu",
        "bias_constraint":null,
        "use_bias":true,
        "bias_initializer":{  
           "config":{  

           },
           "class_name":"Zeros"
        },
        "kernel_regularizer":null,
        "activity_regularizer":null,
        "kernel_constraint":null,
        "trainable":true,
        "name":"dense_1",
        "kernel_initializer":{  
           "config":{  
              "maxval":0.05,
              "minval":-0.05,
              "seed":null
           },
           "class_name":"RandomUniform"
        },
        "batch_input_shape":[  
           null,
           8
        ],
        "units":12
     },
     "class_name":"Dense"
  },
  {  
     "config":{  
        "kernel_regularizer":null,
        "bias_regularizer":null,
        "activation":"relu",
        "bias_constraint":null,
        "use_bias":true,
        "bias_initializer":{  
           "config":{  

           },
           "class_name":"Zeros"
        },
        "activity_regularizer":null,
        "kernel_constraint":null,
        "trainable":true,
        "name":"dense_2",
        "kernel_initializer":{  
           "config":{  
              "maxval":0.05,
              "minval":-0.05,
              "seed":null
           },
           "class_name":"RandomUniform"
        },
        "units":8
     },
     "class_name":"Dense"
  },
  {  
     "config":{  
        "kernel_regularizer":null,
        "bias_regularizer":null,
        "activation":"sigmoid",
        "bias_constraint":null,
        "use_bias":true,
        "bias_initializer":{  
           "config":{  

           },
           "class_name":"Zeros"
        },
        "activity_regularizer":null,
        "kernel_constraint":null,
        "trainable":true,
        "name":"dense_3",
        "kernel_initializer":{  
           "config":{  
              "maxval":0.05,
              "minval":-0.05,
              "seed":null
           },
           "class_name":"RandomUniform"
        },
        "units":1
     },
     "class_name":"Dense"
  }

   ],
   "class_name":"Sequential"
}