Skip to content

Saving and loading weights

Michael Barney, Jr edited this page Mar 31, 2018 · 1 revision

Saving / Loading weights

Saving weights is easy as this:

mlp.saveWeigths('./weights.json');

Loading weights is a little more complicated. First, you need to make sure that your model is the same architecture as the model that saved those weights. If that's the case, loading the weights is done like this:

mlp.loadWeights('./weights.json');

And now you're ready to use the model!

Clone this wiki locally