Skip to content

Random outputs (predictions) #2

@render2020

Description

@render2020

Hi,

Sadly your script doesn't seems to be consistence in output (prediction).
Just run it few times (press F5 refresh Chrome console and you will see different results).
Every aprox. 5+ time it's random, not stable, doesn't matter how many iterations while training.

Run it yourself.
`

<script type="text/javascript" src="/js/UNN.js"></script> <script type="text/javascript" src="/js/UNN.util.js"></script> <script> var net = UNN.Create([ ["inpt","line",2,1,1], ["full","sigm",2,1,1], ["full","sigm",1,1,1] ], 0.5); var O = []; var In = [[0,0],[0,1],[1,0],[1,1]], Ou = [[0],[1],[1],[0]]; var prm = { method:"sgd", batch_size:1 }; for(var i=0; i< 50000; i++){ UNN.Train(net,In,Ou,prm); } UNN.GetOutput(net, [0,0], O); console.log(O[2][0]); //should be aprox 0.0xxxx UNN.GetOutput(net, [1,0], O); console.log(O[2][0]); // should be aprox 0.9xxxx UNN.GetOutput(net, [0,1], O); console.log(O[2][0]); // should be aprox 0.9xxxx </script>`

FIREFOX:
image

CHROME:
image
image
image
image

IE EDGE
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions