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

Dann Load (Node)

Matias Vazquez-Levi edited this page Feb 1, 2021 · 5 revisions

Back to Dann

load( name , callback );

Node

Load a previously saved json file from ./savedDanns/. If the network's architechture is not the same, it is going to overwrite the Dann object.

  • name

    The name of the saved directory that holds the dann model.

  • callback

    A function to be called when the model finished loading.




Example

const nn = new Dann();
nn.load('savedname',function(err) {
    if (err) {
        console.log('Error loading the Dann model');
    } else {
        console.log('Successfully loaded the Dann model');
        nn.log();
    }
});