Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Dann createFromJSON

Matias Vazquez-Levi edited this page Mar 28, 2021 · 1 revision

Back to Dann

createFromJSON( data );

Static function

Creates a Dann model from a json object.
  • data

    model data json object, you can get this object from a yourmodel.toJSON();.
    See docs here.

  • returns

    a Dann model.


Example

const nn = new Dann(24,4);
nn.addHiddenLayer(12,'sigmoid');
nn.makeWeights();
const modelData = nn.toJSON();

const newNN = Dann.createFromJSON(modelData);
newNN.log();