3.16. Linear model

One can linearly combine existing models with arbitrary coefficients:

"model": {
    "type": "linear_ener",
    "models": [
    {
        "type": "frozen",
        "model_file": "model0.pb"
    },
    {
        "type": "frozen",
        "model_file": "model1.pb"
    }
    ],
    "weights": [0.5, 0.5]
},

weights can be a list of floats, mean, or sum.

To obtain the model, one needs to execute dp train to do a zero-step training with numb_steps set to 0, and then freeze the model with dp freeze.