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

Dann toJSON

Matias Vazquez-Levi edited this page Apr 29, 2021 · 2 revisions

Back to Dann

toJSON( );

Gets a dannData object.

  • returns

    model data json object, you can apply it to a model with yourmodel.fromJSON();.
    See docs here.

Example

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

const modelData = nn.toJSON();

const newNN = new Dann();
newNN.fromJSON(modelData);

newNN.log();
Clone this wiki locally