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

Dann fromJSON

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

Back to Dann

fromJSON( data );

Applies a json object.

  • data

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

Example

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

const modelData = nn.toJSON();

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

newNN.log();
Clone this wiki locally