Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capture iteration and error #334

Open
nnnnnnnnnn3 opened this issue Sep 17, 2018 · 0 comments
Open

capture iteration and error #334

nnnnnnnnnn3 opened this issue Sep 17, 2018 · 0 comments

Comments

@nnnnnnnnnn3
Copy link

nnnnnnnnnn3 commented Sep 17, 2018

i try get the iteration and error with this code

let errors=[];
        trainer.train(trainingSet, {
            rate: getParametersAnn(tipo,parametros).lr,//0.003
            iterations: 20000,
            error:getParametersAnn(tipo,parametros).error,//0.005
            shuffle: true,
            log: 10,
            cost: synaptic.Trainer.cost.CROSS_ENTROPY,
            schedule: {
                every: 1000,
                do: function(data){
                    console.log('errors',data);
                    errors.push(data.error);
                }
            }
        });

but never enters, does not show the console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant